[create_graph_json] Fix int conversion