# How to extract value from an array of multiple JSON urls?

**URL:** https://discourse.processing.org/t/how-to-extract-value-from-an-array-of-multiple-json-urls/41398
**Category:** Libraries
**Created:** [March 21, 2023, 8:28pm UTC](https://discourse.processing.org/t/how-to-extract-value-from-an-array-of-multiple-json-urls/41398 "2023-03-21T20:28:46Z")
**Posts on this page:** 1
**Showing post:** 15

<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: [March 22, 2023, 5:18am UTC](https://discourse.processing.org/t/how-to-extract-value-from-an-array-of-multiple-json-urls/41398/15 "2023-03-22T05:18:58Z")

</div>

This is my [attempt](https://OpenProcessing.org/sketch/1875469) for your sketch:

https://OpenProcessing.org/sketch/1875469/embed/

Basically I’ve declared a global variable _loads_, which keeps the current number of active **loadJSON()**.

When _loads_ is decreased back to 0, via callback **decreaseCounter()**, function **generateOutput()** is called back.

---

_[View the full topic](https://discourse.processing.org/t/how-to-extract-value-from-an-array-of-multiple-json-urls/41398)._
