# Parse.Object deep serialization including Pointers, Relations, ACLs

**URL:** <https://community.parseplatform.org/t/parse-object-deep-serialization-including-pointers-relations-acls/1434>\
**Category:** JavaScript SDK\
**Tags:** pointers, acl, relation\
**Created:** [March 11, 2021, 12:52pm UTC](https://community.parseplatform.org/t/parse-object-deep-serialization-including-pointers-relations-acls/1434 "2021-03-11T12:52:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kulanu](https://community.parseplatform.org/user_avatar/community.parseplatform.org/kulanu/32/518_2.png) [@kulanu](https://community.parseplatform.org/u/kulanu)\
**Post date:** [March 11, 2021, 12:52pm UTC](https://community.parseplatform.org/t/parse-object-deep-serialization-including-pointers-relations-acls/1434/1 "2021-03-11T12:52:10Z")

</div>

Whelp, the title pretty much sums up the question

- is there a method to ‘deep serialize’ a ParseObject, including all related objects - pointers, relations, ACLs and any other related Parse objects.?

- and if not, what would be the right approach? Serialize the starting object, and iterate recursively looking for a toJSON() method perhaps?

I’m sure this has been asked or done before but I can’t find anything in this forum or in the docs.

Update: i guess what I’m looking for is a method to create the data POJO as seen when you print the contents of attributes to the screen.

Thanks.

---

<div class="post-metadata">

**Author:** ![cbaker6](https://community.parseplatform.org/user_avatar/community.parseplatform.org/cbaker6/32/114_2.png) [@cbaker6](https://community.parseplatform.org/u/cbaker6)\
**Post date:** [March 11, 2021, 3:29pm UTC](https://community.parseplatform.org/t/parse-object-deep-serialization-including-pointers-relations-acls/1434/2 "2021-03-11T15:29:47Z")

</div>

I might be understanding your questions incorrectly, but are just trying to fetch all nested Parse Objects? If so, you can use `includeAll` in JS:

[https://parseplatform.org/Parse-SDK-JS/api/3.1.0/Parse.Query.html#includeAll](https://parseplatform.org/Parse-SDK-JS/api/3.1.0/Parse.Query.html#includeAll)

If you find, first, or even fetch with `includeAll` and then printed your object to the console it should show all nested items.

---

<div class="post-metadata">

**Author:** ![dblythy](https://community.parseplatform.org/user_avatar/community.parseplatform.org/dblythy/32/231_2.png) [@dblythy](https://community.parseplatform.org/u/dblythy)\
**Post date:** [March 11, 2021, 3:33pm UTC](https://community.parseplatform.org/t/parse-object-deep-serialization-including-pointers-relations-acls/1434/3 "2021-03-11T15:33:47Z")

</div>

You should be able to use `new Parse.Object.fromJSON`, but your pointers and relations will have to have types, such as:

```auto
const json = {
  className: 'MyObject',
   file: {
     __type: 'File',
     name: 'parse.txt',
     url: 'http://files.parsetfss.com/a/parse.txt',
   }
}
const obj = new Parse.Object.fromJSON(json);

```

---

<div class="post-metadata">

**Author:** ![kulanu](https://community.parseplatform.org/user_avatar/community.parseplatform.org/kulanu/32/518_2.png) [@kulanu](https://community.parseplatform.org/u/kulanu)\
**Post date:** [March 11, 2021, 3:38pm UTC](https://community.parseplatform.org/t/parse-object-deep-serialization-including-pointers-relations-acls/1434/4 "2021-03-11T15:38:38Z")

</div>

No, in order tackle the data reactivity we spoke about on the other thread, I want to create a recursive non-native representation of the object where pointers, relations, ACLs etc have been substituted for their POJO-like representations (ie. non-frozen attributes) so I can access the aggregate data like so: `member.membership.term` - three related nested objects … which in parse would be more like `member.get('membership').get('term')` - again, it’s all about trying to keep the usefulness of parse (ie relations, querying etc) and do it as natively as possible … whilst adding data reactivity in Vue.
