I am storing data in JSON files with array of JSON objects.
Right Now I am doing like
[{"key1":"value1","key2":"value2"}] Is this universally accepted. ? If so which Tech Lead company supports this format .
I am storing data in JSON files with array of JSON objects.
Right Now I am doing like
[{"key1":"value1","key2":"value2"}] Is this universally accepted. ? If so which Tech Lead company supports this format .
Do you have a reason for wrapping your main values in []? Are you intending to structure it as the following [{'key1':'value1','key2':'value2'.....},{'keyN':'valueN','keyN':'valueN'}.....] or similar? If not then using [] is pretty pointless.
{'object1': {'key1':'value1','key2':'value2'}, 'object2' {'key1':'value1','key2':'value2'}} Would probably work better for you.