You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fastjson.GetString( data, "key") return a string leaving the escape characters at place.
However, when data is parsed and the key is accessed, the return value is always without escape characters.
fastjson.GetString( data, "key" ) -> returns string without escape characters
fastjson.Parse(data).Get("key").String() -> returns string with escape characters, but in a " " ( ??? )
fastjson.Parse(data).GetStringBytes("key") -> returns []bytes made from a string without escape characters.
The text was updated successfully, but these errors were encountered:
salmonix
changed the title
Inconsistent behavior of fastjson.GetString( data, "key") and value Get("key").String()
Inconsistent interface of fastjson.GetString( data, "key") and value Get("key").String()
Sep 25, 2023
fastjson.GetString( data, "key") return a string leaving the escape characters at place.
However, when data is parsed and the key is accessed, the return value is always without escape characters.
fastjson.GetString( data, "key" ) -> returns string without escape characters
fastjson.Parse(data).Get("key").String() -> returns string with escape characters, but in a " " ( ??? )
fastjson.Parse(data).GetStringBytes("key") -> returns []bytes made from a string without escape characters.
The text was updated successfully, but these errors were encountered: