# Examples from "Make: Getting Started with p5.js" not working

**URL:** <https://discourse.processing.org/t/examples-from-make-getting-started-with-p5-js-not-working/37835>\
**Category:** Beginners\
**Created:** [July 4, 2022, 6:34pm UTC](https://discourse.processing.org/t/examples-from-make-getting-started-with-p5-js-not-working/37835 "2022-07-04T18:34:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 4, 2022, 6:46pm UTC](https://discourse.processing.org/t/examples-from-make-getting-started-with-p5-js-not-working/37835/2 "2022-07-04T18:46:54Z")

</div>

> [@MissAda](#):
>
> Are these examples outdated or am I doing something wrong??

- 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:

> **[Issues · processing/p5.js](https://github.com/processing/p5.js/issues)**
>
> p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Proces...

---

_[View the full topic](https://discourse.processing.org/t/examples-from-make-getting-started-with-p5-js-not-working/37835)._
