Quantcast
Channel: Error "Uncaught SyntaxError: Unexpected token with JSON.parse" - Stack Overflow
Viewing all articles
Browse latest Browse all 25

Error "Uncaught SyntaxError: Unexpected token with JSON.parse"

$
0
0

What causes this error on the third line?

var products = [{"name": "Pizza","price": "10","quantity": "7"}, {"name": "Cerveja","price": "12","quantity": "5"}, {"name": "Hamburguer","price": "10","quantity": "2"}, {"name": "Fraldas","price": "6","quantity": "2"}];console.log(products);var b = JSON.parse(products); //unexpected token o

Open console to view error


Viewing all articles
Browse latest Browse all 25

Latest Images

Trending Articles





Latest Images