scene_synthesizer.exchange.export.export_json

scene_synthesizer.exchange.export.export_json(scene, use_base64=False, include_metadata=True)

Export a scene to a JSON string.

Note, the resulting JSON file can be loaded again via scene_synthesizer.Scene.load().

Parameters:
  • scene (scene_synthesizer.Scene) – Scene to be exported.

  • use_base64 (bool, optional) – Encode arrays with base64 or not. Defaults to False.

  • include_metadata (bool, optional) – Whether to include scene metadata. Defaults to True.

Returns:

Scene as JSON string.

Return type:

str