validate quotes in json string code example Example: is json valid with single quotes JSON requires double quotes for its strings