mirror of
https://github.com/kgabis/parson.git
synced 2024-11-24 06:05:29 +00:00
parent
b61c03e614
commit
dcf85b88c8
3
parson.c
3
parson.c
@ -1004,6 +1004,9 @@ JSON_Value * json_parse_string(const char *string) {
|
||||
if (string == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
if (string[0] == '\xEF' && string[1] == '\xBB' && string[2] == '\xBF') {
|
||||
string = string + 3; /* Support for UTF-8 BOM */
|
||||
}
|
||||
return parse_value((const char**)&string, 0);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"string" : "lorem ipsum",
|
||||
"utf string" : "\u006corem\u0020ipsum",
|
||||
"utf-8 string": "あいうえお",
|
||||
|
Loading…
Reference in New Issue
Block a user