A de-serializer of json objects, with constructors and function calls