Hi,
If you want to use JSON with ROOT, you probably want to check TBufferJSON class. It provides possibility to store arbitrary C++ object into JSON and already has its own referencing schema, which can be decoded using JSROOT functions.
Regards,
Sergey