Added as_string with output_format to json