Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
protected fun to_json_by_append: String do
var buffer = new RopeBuffer
append_json(buffer)
protected fun to_json_by_append: String do
var buffer = new RopeBuffer
append_json(buffer)
- return buffer.write_to_string
end
# Append the JSON representation of `self` to the specified buffer.
end
# Append the JSON representation of `self` to the specified buffer.
var res = new FlatBuffer
pretty_json_visit(res, 0)
res.add '\n'
var res = new FlatBuffer
pretty_json_visit(res, 0)
res.add '\n'
- return res.write_to_string
end
private fun pretty_json_visit(buffer: FlatBuffer, indent: Int) is abstract
end
private fun pretty_json_visit(buffer: FlatBuffer, indent: Int) is abstract
- return res.write_to_string