I'm working on a simple engine for webgl in javascript.
I have a c++ collada reader that builds a scenegraph of the scene with nodes, meshes , trasformations and materials.
The shaders are already in js.
Now i would create a json from the read classes and send they to javascript for the deserialization.
My question is :
json is only an interchange format that must be parsed after the eval or can be a deserializable format that with eval creates ex novo the instances of the javascript classes and fills it with properties?

I use c++ for reading from collada, which json c++ library you advice to me?