core :: Text :: json_need_escape
self
need treatment from JSON to Nit ?i.e. is there at least one \
character in it ?
assert not "string".json_need_escape
assert "\\\"string\\\"".json_need_escape
# Does `self` need treatment from JSON to Nit ?
#
# i.e. is there at least one `\` character in it ?
#
# assert not "string".json_need_escape
# assert "\\\"string\\\"".json_need_escape
private fun json_need_escape: Bool do return has('\\')
lib/json/static.nit:38,2--44,55