1{
2 "name":"John",
3 "age":30,
4 "cars":[ "Ford", "BMW", "Fiat" ]
5}
6
7// Another exemple
8{
9 "people": [
10 {
11 "website": "stackabuse.com",
12 "from": "Nebraska",
13 "name": "Scott"
14 },
15 {
16 "website": "google.com",
17 "from": "US",
18 "name": "Zuck"
19 }
20 ]
21}
22
1
2const text = '["Ford", "BMW", "Audi", "Fiat"]';
3
4const myArr = JSON.parse(text);
5
6