# Reading Objects from readRecords

**URL:** <https://forum.code.org/t/reading-objects-from-readrecords/25424>\
**Category:** Website and Tools Questions\
**Created:** [March 8, 2019, 9:07pm UTC](https://forum.code.org/t/reading-objects-from-readrecords/25424 "2019-03-08T21:07:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zsawyer](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/zsawyer/32/4302_2.png) [@zsawyer](https://forum.code.org/u/zsawyer)\
**Post date:** [March 14, 2019, 3:12pm UTC](https://forum.code.org/t/reading-objects-from-readrecords/25424/2 "2019-03-14T15:12:14Z")

</div>

The solution to this question was addressed in this topic.

> [@Arrays stored in data storage](https://forum.code.org/t/arrays-stored-in-data-storage/25502/3):
>
> Thank you, that was a perfect solution. The same process can for more complicated objects as well. var assn1 = new ASSIGNMENT(“Work”, {“val”:80,“weight”:0.2}); var assnCopy; function ASSIGNMENT (name, grade){ this.name = name; this.grade = grade; } createRecord("mytable", {data:JSON.stringify(assn1)}, function() {}); readRecords("mytable", {}, function(records) { console.log(records[2].data.name);//undefined console.log(records[2].data); //{"name":"Work","grade":{"val":80,"weight":0.…

---

_[View the full topic](https://forum.code.org/t/reading-objects-from-readrecords/25424)._
