diff options
Diffstat (limited to 'stdlib/source/lux/data/format/json.lux')
-rw-r--r-- | stdlib/source/lux/data/format/json.lux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/lux/data/format/json.lux b/stdlib/source/lux/data/format/json.lux index 984fbb1aa..01652968f 100644 --- a/stdlib/source/lux/data/format/json.lux +++ b/stdlib/source/lux/data/format/json.lux @@ -147,7 +147,7 @@ [get-object #Object Object "objects"] ) -(struct: #export _ (Equivalence JSON) +(structure: #export _ (Equivalence JSON) (def: (= x y) (case [x y] [#Null #Null] @@ -495,6 +495,6 @@ (-> Any (l.Lexer JSON)) ($_ p.alt null~ boolean~ number~ string~ (array~ json~') (object~ json~'))) -(struct: #export _ (Codec Text JSON) +(structure: #export _ (Codec Text JSON) (def: encode show-json) (def: decode (function (_ input) (l.run input (json~' []))))) |