Escape a string for use in a JSON document. This method does not add quotes around the result.

Always prefers the shortest valid encoding.

Location

Namespace
Uno.Data.Json
Package
Uno.Data.Json 2.9.2

Parameters

str

string

Returns

string