Spring, 2019 | Sungkyunkwan University


Loading / Saving (JSON) Data in Processing

JSON is a file format that is widely used to store simple data. JSON file is basically a simple text file.  You can edit .json file with any text editor.

https://en.wikipedia.org/wiki/JSON

 

Data can be stored as Key – Value.

// Example 1

{

  “name” : “Young Sang Cho”

}

 

// Example 2 – separate key-value pair with comma

{

  “name” : “Young Sang Cho”,

  “age” : 53

}

 

// Example 3 – Array

{

  “students”: [
    {
      “name” : “Young Sang Cho”,
      “age” : 43,
      “grade” : “C”
    },
    {
      “name” : “Jina Kim”,
      “age” : 15,
      “grade” : “A”
    }
  ]
}

 

Example Code :

loadingJSON / loadingJSON2 / savingJSON

 

Processing Reference :

https://processing.org/reference/JSONObject.html

https://processing.org/reference/loadJSONObject_.html

https://processing.org/reference/JSONArray.html

https://processing.org/reference/loadJSONArray_.html

 

Beatriz Diaz 12:00
Carolina Mendoza 12:06
Gianela 12:12
Ornella Brown 12:18
Samma Kinsara 12:24
Sini Keskitalo 12:30
강지현 12:36
공손희 12:42
김다영 12:48
김민제 12:54
김지영 13:00
김현정 13:06
민푸름 13:12
박지현 13:18
배소현 13:24
배정효 13:30
우세희 13:36
변채연 13:42
윤지영 13:48
장일 13:54
정다인 14:00
정지원 14:06
정효영 14:12
정휘윤 14:18
조예림 14:24
조현수 14:30
최준호 14:36

Homework

Write a post about your progress last week.



Submit Your Homework

name
student ID
content
Spam Filter What is the name of your university? University


2019-05-26 16:02
정효영 | 2015313195
http://webears.egloos.com/6490038

2019-05-25 13:00
Beatriz Qianqian Koppers Díaz | 2019318276
https://starwingsart.wixsite.com/videointeractive/post/final-project-idea

2019-05-23 23:29
Jiwon Jung | 2015318861
http://mmiiyyoo.egloos.com/6488747

2019-05-23 23:27
조현수 | 2017314534
http://peachs312.egloos.com/6489197

2019-05-23 22:28
최준호 | 2018314445
http://kopagfm.egloos.com/6489180

2019-05-23 22:02
배정효 | 2013314104
http://kafkabe.egloos.com/6489171

2019-05-23 21:55
Gianela | 2017315142
http://gianela98.egloos.com/6489168

2019-05-23 19:15
박지현 | 2016312038
http://qkrdid105.egloos.com/6489123

2019-05-23 18:12
정다인 Jeong Da In | 2018312361
http://mintalice.egloos.com/6488875
http://mintalice.egloos.com/6488889

2019-05-23 14:22
Chaeyeon Byun | 2015313263
http://byunchae.egloos.com/6489035

2019-05-23 14:09
Sonhee Kong 공손희 | 2016311017
http://kshpbo830.egloos.com/6489031

2019-05-23 13:18
JiYoung Kim | 2015311964
http://jyungk.egloos.com/6488994

2019-05-23 13:11
배소현 | 2015311180
http://wendy1997.egloos.com/6488496

2019-05-23 12:56
Samaa Kinsara | 2019318182
https://samakinsara.wordpress.com/2019/05/23/week-11/

2019-05-23 12:05
Kim Da Young | 2018314500
http://francesca1.egloos.com/6488995

2019-05-22 22:48
- | -
-