format json with single quote code example Example: is json valid with single quotes JSON requires double quotes for its strings