Created
July 16, 2024 16:29
-
-
Save koladilip/9230dde79b07e0f1d57efb61d4430a60 to your computer and use it in GitHub Desktop.
invalid_array_index_mappings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"code":"[\n {\n \"from\": \"$.products[*].a\",\n \"to\": \"$.items[*].a\"\n },\n {\n \"from\": \"$.products[*].b\",\n \"to\": \"$.items[0].b\"\n }\n]\n","data":"{\n \"type\": \"track\",\n \"event\": \"Checkout Step Completed\",\n \"userId\": \"joh@doe\",\n \"anonymousId\": \"anonymous@john@doe\",\n \"context\": {\n \"traits\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"name\": \"John Doe\",\n \"age\": 30,\n \"email\": \"[email protected]\",\n \"phone\": 7832377652,\n \"address\": {\n \"city\": \"Brooklyn\",\n \"country\": \"US\",\n \"postalCode\": \"10001\",\n \"state\": \"NY\",\n \"street\": \"51st Avenue\"\n },\n \"company\": {\n \"name\": \"RudderStack\",\n \"id\": 18,\n \"industry\": \"SaaS\",\n \"employee_count\": 130,\n \"plan\": \"Enterprise\"\n },\n \"createdAt\": \"2024-06-10T00:12:09.544Z\"\n }\n },\n \"properties\": {\n \"currency\": \"USD\",\n \"coupon\": \"DISCOUNT 25\",\n \"shipping_method\": \"Transit\",\n \"revenue\": 299,\n \"products\": [\n {\n \"product_id\": \"507f1f77bcf86cd799439099\",\n \"name\": \"Risk: World Domination\",\n \"coupon\": \"STRATEGY_GAMES\",\n \"category\": \"Games\",\n \"brand\": \"Hasbro\",\n \"variant\": \"Standard Edition\",\n \"price\": 34.50,\n \"quantity\": 1,\n \"position\": 2,\n \"affiliation\": \"Local Game Store\",\n \"currency\": \"USD\",\n \"discount\": 2.5,\n \"item_category2\": \"Family\",\n \"item_category3\": \"Board Games\",\n \"item_category4\": \"Strategy\",\n \"item_category5\": \"Offer\",\n \"item_list_id\": \"related_products\",\n \"item_list_name\": \"Related Products\",\n \"location_id\": \"L_98765\",\n \"klax\": \"Klax1\"\n },\n {\n \"product_id\": \"789012345678901234567890\",\n \"name\": \"Comfy Cozy Crew Socks (3-pack)\",\n \"coupon\": \"SUMMER_FUN\",\n \"category\": \"Apparel\",\n \"brand\": \"Google\",\n \"variant\": \"Multicolor\",\n \"price\": 12.99,\n \"quantity\": 15,\n \"currency\": \"USD\",\n \"discount\": 1.50,\n \"item_category2\": \"Adult\",\n \"item_category3\": \"Accessories\",\n \"item_category4\": \"\",\n \"item_category5\": \"\",\n \"item_list_id\": \"related_products\",\n \"item_list_name\": \"Related Products\",\n \"location_id\": \"L_12345\",\n \"klax\": \"Klax2\"\n }\n ]\n },\n \"originalTimestamp\": \"2024-07-10T00:12:09.544Z\"\n}","bindings":"const bindings = {\n \"description\": \"Enter your bindings here\"\n };","result":{"error":"Invalid mapping: invalid array index mapping. Input: $.products[*].b, Output: $.items[0].b"},"type":"Mappings","name":""} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment