Software /
code /
prosody
File
teal-src/util/json.d.tl @ 13513:2fb79fe54390 0.12
core.moduleapi: Default labels to empty list to fix error if omitted
In a host-scoped module in the `if is_scoped` clause the resulting
`array:append(nil)` call throws.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 18 Aug 2024 16:58:30 +0200 |
parent | 11460:a8b4e04bc044 |
line wrap: on
line source
local record lib encode : function (any) : string decode : function (string) : any, string enum json_type_name "null" "boolean" "object" "array" "number" "string" "integer" end type null_type = (nil) null : null_type end return lib