I’m trying to convert my Parse object that’s in JSON format into a Parse.Object using the Parse.Object.fromJSON() and while it’s working for my highest level object, it’s not working for nested objects.
I am trying to convert my Products which has a nested pointer of Store and ProductCategory.
After running
Parse.Object.fromJSON({
className: 'Products',
...product,
});
My Product is working as expected to be a Parse.Object. However, my nested pointer is not. My ProductCategory when logging my Product looks like this.
{
ProductCategory: i
className: "ProductCategories"
id: "12345678"
_localId: undefined
_objCount: 2892
attributes: Object
}
The attributes is empty and doesn’t have any of the data from when it was in JSON format.
Is there something I’m doing wrong here?