Loading scene from json

In the latests version I see
Snippet

function JSONLoader() { console.error(‘THREE.JSONLoader has been removed.’); }

What is the current method for loading a scene from json? The scenario is to create a scene add some objects, then persist (scene.toJSON) it to storage and be able to read the JSON and recreate the scene

JSONLoader was for JSON files created by a (much) older version of three.js. In all recent versions, data created with object.toJSON() should be loaded with the ObjectLoader class.

1 Like