StringUtils.escapeJson

Escape a json value string

class StringUtils
string
escapeJson
(
string value
)

Examples

The "abc\n123" will be escaped as "abc\\n123"

See Also

Meta