Answers for "array in json string"

7

json example array

{
	"name":"John",
	"age":30,
	"cars":[ "Ford", "BMW", "Fiat" ]
}

// Another exemple
{
    "people": [
        {
            "website": "stackabuse.com",
            "from": "Nebraska",
            "name": "Scott"
        },
        {
            "website": "google.com",
            "from": "US",
            "name": "Zuck"
        }
    ]
}
Posted by: Guest on January-14-2021
6

js string to json

var obj = JSON.parse("{no:'u',my:'sql'}");//returnes {no:'u',my:'sql'}
Posted by: Guest on April-08-2020

Code answers related to "array in json string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language