mumu 0.9.1

Lava Mumu is a language for those in the now and that know
Documentation
extend("json")
extend("array")
extend("string")

slog(
  json:decode('{ "a1": "Alice", "age": 30 }')
)


slog(
  json:encode([a:1], [name: "Peter", age:97])
)


A = [ name:"Bob", items:[1,2,3]]
jsCompact = json:encode([ pretty:false ], A)

slog(jsCompact)

parsedCompact = json:decode(jsCompact)
slog(parsedCompact)
slog(array:prop("name", parsedCompact))


slog( string:length(json:encode([ pretty:true, indent:10 ], [ alpha:true, beta:false ])))

slog( string:length(json:encode([ pretty:true, indent:1 ], [ alpha:true, beta:false ])))