I've got a JSON array of objects like :
x= {"user":[{ "name": "Jhon", "age": "18" }, { "name": "Ted", "age": "20" }]};
I would like to store every values of names of each object in a simple array but I don't know how to do that
I know that I can get values of names with JSON.parse(x)["user][0]["name"]
So I need how to get the number of objects in my array of objects : Objects.keys(JSON.parse(x)["users"]).length)