Versions Compared

Key

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

JSON is a lightweight, plain text data format. It’s become a standard that is widely used across many industries, even healthcare.

Its simplicity simple structure makes it a good example to review some key Lua and Translator concepts.

...

Expand
titleParse the JSON sample data using json.parse{data=Data}
Code Block
languagelua
local patient = json.parse{data=Data}

JSON objects are parsed into Lua tables. You can see this clearly in the Annotation Window.

Expand

if statements

Expand

Expand
titleSerialize the table as a JSON string using json.serialize{data=Data}

...