added support for using JsonPath for object serialization