Getting json from graph