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

Property definitions

json :: static $ Text :: 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

json :: static $ FlatText :: json_need_escape
	redef fun json_need_escape do
		var its = items
		for i in [first_byte .. last_byte] do
			if its[i] == 0x5C then return true
		end
		return false
	end
lib/json/static.nit:128,2--134,4