diff options
author | Eduardo Julian | 2022-06-11 00:10:52 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-06-11 00:10:52 -0400 |
commit | 5b36c00da8a21c5d70adec4b50ef573e12dc5cf8 (patch) | |
tree | a1549d05cce57d20745c0835ea2419858fc30a4e /stdlib/source/library/lux/data/format/json.lux | |
parent | f21ca0dc1956a47b8f7ac6e0ea67d7d246c55280 (diff) |
De-sigil-ification: : [Part 2]
Diffstat (limited to 'stdlib/source/library/lux/data/format/json.lux')
-rw-r--r-- | stdlib/source/library/lux/data/format/json.lux | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stdlib/source/library/lux/data/format/json.lux b/stdlib/source/library/lux/data/format/json.lux index 54ef372f1..6e358ec80 100644 --- a/stdlib/source/library/lux/data/format/json.lux +++ b/stdlib/source/library/lux/data/format/json.lux @@ -23,7 +23,7 @@ ["[0]" sequence (.only Sequence sequence) (.open: "[1]#[0]" monad)] ["[0]" dictionary (.only Dictionary)]]] [macro - [syntax (.only syntax:)] + [syntax (.only syntax)] ["^" pattern] ["[0]" code]] [math @@ -122,8 +122,9 @@ {#Code' code} code)) -(syntax: .public (json [token ..jsonP]) - (in (list (` (is JSON (~ (jsonF token))))))) +(def: .public json + (syntax (_ [token ..jsonP]) + (in (list (` (is JSON (~ (jsonF token)))))))) (def: .public (fields json) (-> JSON (Try (List String))) |