Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Op basis van een JSON input string, wordt dit omgezet naar een object.

Code Block
languagepy
#Create variable with JSON
json = """{
  CPU: 'Intel',
  Drives: [
    'DVD read/writer',
    '500 gigabyte hard drive'
  ]
}"""

#Set JSON to object
o = u.JsonNaarObject(json)

#Give result from just one attribute within the JSON object
o.CPU

...