fix: transform objects to pointers in encodeParse()