Looks like this would all be simpler if it serialize a IPropertyTree server side and deserialized it in 1 line here..