contrib: update clients of `to_json_string`