I know:
{
"name": "Mike",
"age": 18
}
or
[{"name": "Mike"},{"name": "Jeff"}]
are valid jsons.
But I’m not sure if [1,2,3] is or not?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
[1,2,3] a valid JSON array, but not a valid JSON object. An object must be of the form {…}.
Your other examples are not valid JSON. Strings must be in double-quotes.You fixed it.