Added output_format as opt arg to to_string
json_serializer file file now json_stream_writer