In JavaScript
[ ]: This called array
Ex. var arr = [1,2,3];
{}: This called object
Ex. var obj= { "name": "hari","age":23};
From your example You can make array of objects
Ex. var arrobj = [ { "name": "hari","age":23},{ "name": "albert","age":50}];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.