vendredi 4 novembre 2016

Synchronous instantiation pattern -- flat JSON to actual, circular data structure?

JSON comes in with many object descriptions

These objects hold string references to other objects in this flat structure

Currently, we instantiate all objects and just retain the string references to other objects

I want the instances to have actual, object references to the other instances


Is there any simple pattern for iterating this initial JSON in a synchronous manner?

Currently, we're essentially using forEach and new Class with each description

Thanks

Aucun commentaire:

Enregistrer un commentaire