Load Node Material from already Parsed JSON?

so if I reference a JSON file the code is:

nodeMaterial.loadAsync("file-url.json").then(() => {
    nodeMaterial.build(true);
})

What if I already have the JSON loaded and parsed in an Object? I am loading from a database and then parsing the return into a data container, and I am just trying to figure out how to load it now.

You can use the loadFromSerialization method instead.

1 Like

I was able to just pass a string to it, but that is a good idea as well. thank you!

1 Like