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