use get_json, fix --port type