More fixes in json_connection