use to_json instead of json_string