mirror of
https://github.com/json-c/json-c.git
synced 2026-04-05 21:39:06 +08:00
Fix issue #201: add a JSON_C_TO_STRING_NOSLASHESCAPE flag to turn off escaping of forward slashes.
This commit is contained in:
@@ -226,6 +226,9 @@ struct incremental_step {
|
||||
{ "\"\\n\"", -1, -1, json_tokener_success, 0 },
|
||||
{ "\"\\r\"", -1, -1, json_tokener_success, 0 },
|
||||
{ "\"\\t\"", -1, -1, json_tokener_success, 0 },
|
||||
{ "\"\\/\"", -1, -1, json_tokener_success, 0 },
|
||||
// Escaping a forward slash is optional
|
||||
{ "\"/\"", -1, -1, json_tokener_success, 0 },
|
||||
|
||||
{ "[1,2,3]", -1, -1, json_tokener_success, 0 },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user