Skip to content

OSL ‐ Json Handling

Mistium edited this page Dec 1, 2023 · 18 revisions

About

Json is a major part of large data storage in osl. It allows for much more complex data structures over basic variables

Defining Json objects and arrays

object = {"key":"data","key2":"data2"} array = ["data","data2","data3"]


You can store arrays in arrays 😱

array = [["data","data2"],"data3","data4"]

Json Documentation

Setting data in json

array.[itemid] = "data" object.key("key") = "data"

Examples

array = ["data",["data2","data3"]]

temp = array.[2] temp.[2] = "data4" array.[2] = temp

array is now equal to ["data",["data2","data4"]]

originOS Wiki

Wiki Views:
:views

OSL | RSH | ICN

Clone this wiki locally