Actually We dont need to call scene.generate_visualization_dict. I called it to just show we can get data in dictionary form also.

otherwise for practical purposes, scene.generate_visualization_json calls the other method from within itself.
I will make the ammends.