allow_singlequote $json = $json->allow_singlequote([$enable]) If $enable is true (or missing), then "decode" will accept JSON strings quoted by single quotations that are invalid JSON format.