serialization :: E :: ser_json2
self
and prints with the custom RestrictedJsonSerializer.
# Test method that serializes `self` and prints with the custom RestrictedJsonSerializer.
fun ser_json2
do
var w = new StringWriter
var js = new RestrictedJsonSerializer(w)
js.plain_json = true
js.serialize(self)
print w
end
lib/serialization/examples/custom_serialization.nit:75,2--83,4