Select from following answers:- Valid JSON
- Parse error on line 2:{ "city" = "Bangalore", "popu.... Expecting 'EOF', '}', ':', ',', ']', got 'undefined'
- Don't know
- All Above
This is an invalid JSON. A json is a key value pair that are denoted by key:value and not key=value. So this will produce parser error
Error: Parse error on line 2:
{ "city" = "Bangalore", "popu
---------^
Expecting 'EOF', '}', ':', ',', ']', got 'undefined'
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator