# Using my own data in a P5.js sketch?

**URL:** <https://discourse.processing.org/t/using-my-own-data-in-a-p5-js-sketch/37983>\
**Category:** Coding Questions\
**Created:** [July 16, 2022, 6:51am UTC](https://discourse.processing.org/t/using-my-own-data-in-a-p5-js-sketch/37983 "2022-07-16T06:51:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 18, 2022, 9:03am UTC](https://discourse.processing.org/t/using-my-own-data-in-a-p5-js-sketch/37983/7 "2022-07-18T09:03:49Z")

</div>

> [@mamba76](#):
>
> … I don’t remember object only last year?

> [@Examples from "Make: Getting Started with p5.js" not working](https://discourse.processing.org/t/examples-from-make-getting-started-with-p5-js-not-working/37835/2):
>
> Neither!! File “films.json” is an array of objects. However loadJSON() is returning an object instead of an array! So filmData.length is zero! Even though it indeed contains 12 objects. According to loadJSON()'s online reference: [reference | p5.js](http://p5js.org/reference/#/p5/loadJSON) it’s supposed to return either an object or an array. So it’s a bug which was introduced later. You should open an issue on its repo:

---

_[View the full topic](https://discourse.processing.org/t/using-my-own-data-in-a-p5-js-sketch/37983)._
