Make build_graph app write JSON files