What are the specific requirements for a Json file?

Json Example

  • It’s crucial to use camelCase for all element names.
  • Format is an array of objects, where each object contains a product/ad.

[

{ --> All data for a product will be inside of this element },

{ --> All data for a product will be inside of this element },

]


  • Format is again an array of objects but each object can only contain 2 name-value pairs: type and value. This means, if you have an attribute with two different values, you must create 2 objects with the same type (so you can have duplicate types). 

"attributes": [{

                 "type": "color",

                 "value": "White"

             },{

                "type": "colorFamily",

                 "value": "Green"

             },{

                "type": "colorFamily",

                 "value": "White"

            },{

                 "type": "thumbnail",

                 "value": "/images/heh-9133_600x600.png"

             },{

                "type": "price",

                 "value": "24.99"

             },{

...

}

]