What happens if I have an unexpected character in a string value?

Responsive Ad Header

Question

Grade: Education Subject: Support
What happens if I have an unexpected character in a string value?
Asked by:
65 Viewed 65 Answers

Answer (65)

Best Answer
(296)
If a string value contains an unexpected character, the JSON parser will likely flag it as an error because strings must be enclosed in double quotes and must not contain characters that are not permitted within the string syntax. The unexpected character will typically cause the parse to fail.