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
Get("key").String() returns the json string removing the escape characters, while GetStringByte("key") does the same only converting it into a []byte, as
The unescaped value can not be Set directly in the json:
Set("key", fastjson.MustParseBytes(value) )
will return error.
This behavior prevents low level modification of the value. For example, replacing placeholders in a bigger xml without parsing the xml data, then re-escaping it would add unnecessary overhead to the whole operation.
Is there any way to retrieve the value in its raw []byte form ?
The text was updated successfully, but these errors were encountered:
Get("key").String() returns the json string removing the escape characters, while GetStringByte("key") does the same only converting it into a []byte, as
This raw value, for instance,
is turned into
The unescaped value can not be Set directly in the json:
will return error.
This behavior prevents low level modification of the value. For example, replacing placeholders in a bigger xml without parsing the xml data, then re-escaping it would add unnecessary overhead to the whole operation.
Is there any way to retrieve the value in its raw []byte form ?
The text was updated successfully, but these errors were encountered: