aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/poly
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/poly')
-rw-r--r--stdlib/source/poly/lux/data/format/json.lux5
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/source/poly/lux/data/format/json.lux b/stdlib/source/poly/lux/data/format/json.lux
index 5b48aa34b..3146804e5 100644
--- a/stdlib/source/poly/lux/data/format/json.lux
+++ b/stdlib/source/poly/lux/data/format/json.lux
@@ -9,8 +9,9 @@
[control
["." try]
["<>" parser
+ ["</>" json]
["<.>" type]
- ["</>" json]]]
+ ["<.>" code]]]
[data
["." text
["%" format (#+ format)]]
@@ -321,7 +322,7 @@
(<>.failure (format "Cannot create JSON decoder for: " (type.format inputT)))
))))
-(syntax: .public (codec inputT)
+(syntax: .public (codec [inputT <code>.any])
{#.doc (example "A macro for automatically producing JSON codecs."
(type: Variant
(#Bit Bit)