example_03.bmx 341 B

12345678910111213141516171819202122232425
  1. SuperStrict
  2. Framework Text.Json
  3. Import BRL.StandardIO
  4. Import BRL.TextStream
  5. Local Text:String = LoadText("menu.json")
  6. Local error:TJSONError
  7. Local json:TJSON = TJSON.Load(Text, 0, error)
  8. If Not error Then
  9. If TJSONObject(json) Then
  10. For Local j:TJSON = EachIn TJSONObject(json)
  11. Print j.SaveString(0, 2)
  12. Next
  13. End If
  14. End If