You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
union JsonObj=|JsonArrayarr: MutableList::JsonObj|JsonNumbernum: Double|JsonStringstr: String|JsonFieldsfld: MutableMap(String, JsonObj)
typePersonname: Stringage: Int
person =Personname: "Alice"age: 32
x =CompilergetDynamic: person
// x is kinda JsonObj now JsonFields:#{ "name" (JsonStringstr: "Alice")
"age" (JsonNumbernum: 32)}
So now it can be easily transformed to json or XML or mapped to data base liki in exposed, but without inheritance.
New type dynamic, that works the same as this JSON generator Obj implementation https://github.com/gavr123456789/bazar/blob/main/Examples/JSON/main.niva#L1
So now it can be easily transformed to json or XML or mapped to data base liki in exposed, but without inheritance.
Such Dynamit to Json is just a usual libraries, same as https://github.com/gavr123456789/bazar/blob/main/Examples/JSON/main.niva#L30
The text was updated successfully, but these errors were encountered: