JavaScript Object Notation, or JSON, is a format for writing data in a file. While the syntax comes from JavaScript, JSON is used in many other contexts. This example is based on Daniel Shiffman’s Loading JSON Data Example for Processing written in Java. It uses a class to organize data for a bubble. When the sketch starts, it loads the data for two bubbles from a JSON file. The visitor can add new bubbles, download an updated JSON file, and load in a JSON file.
JSON by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.