Fixing the json2 implementation - problems with objects from different engine