JavaScriptオブジェクト表記、またはJSONは、 ファイルにデータを書くためのフォーマットです。構文は JavaScriptから来ていますが、JSONは他の多くの文脈でも使用されます。この例は Daniel ShiffmanのProcessing用に書かれたLoading JSON Dataの例に基づいています。 バブルのデータを整理するためにクラスを使用しています。スケッチが開始されると、JSONファイルから2つのバブルのデータを読み込みます。訪問者は新しいバブルを追加し、更新されたJSONファイルをダウンロードし、JSONファイルを読み込むことができます。
JSON: Created by Daniel Shiffman. Revised by Caleb Foss. From 2024 onwards, edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.
You can find the code history of these examples here: pre-2023 Processing example, 2023 code. You can suggest improvements by contributing to the current website!