Creates a Node representing the passed Object instance. Each member of the returned JSON object will map to a property of the Object
of type OBJECT. Use free to free the resources allocated by this function