Answers for "Array as JSON"

6

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
11

json arrays

{
  "array": [{1,2,3,4,5,6}]
}
Posted by: Guest on June-17-2020
0

Array as JSON

const text = '["Ford", "BMW", "Audi", "Fiat"]';

const myArr = JSON.parse(text);
Posted by: Guest on August-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language