Versions Compared

Key

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

...

Expand
titleUse string.split() to parse the JSON sample data

You can use String:split() to split the function on (“\n”):

Code Block
local List = Data:split("\n")
trace(List)

By Using trace() function, we can click on the List in the annoations. You should annotations and see the following:

This string is now split into a table with individual lines you can now begin to process. This is great... but with Iguana, we’ve made it a little easier to efficiently parse and process JSON.

...