renamed get_json to get_edges