Is there any difference between ‘{‘ and ‘[‘ when formatting a JSON object?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yep one
{...}is used to define a single object, while the other[...]is used to define a sequence of either objects, values or lists …objects are defined as such
{key:object or list or value , ...}list ares nothing more than a sequence of either objects or lists or values,
[objects or list or values, ... ]…[{'value':1}, {'values':[1,2,3,3, {'a':'a', 'b':'b'}]}, 2, 3, 4]