Submit and graph JSON generation functional