aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/data/format/json.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/data/format/json.lux')
-rw-r--r--stdlib/source/lux/data/format/json.lux5
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/source/lux/data/format/json.lux b/stdlib/source/lux/data/format/json.lux
index d847d801b..60d57abab 100644
--- a/stdlib/source/lux/data/format/json.lux
+++ b/stdlib/source/lux/data/format/json.lux
@@ -16,6 +16,7 @@
["." maybe]
["." product]
[number
+ ["n" nat]
["f" frac ("#@." decimal)]]
["." text ("#@." equivalence monoid)]
[collection
@@ -161,7 +162,7 @@
[#String text.equivalence])
[(#Array xs) (#Array ys)]
- (and (n/= (row.size xs) (row.size ys))
+ (and (n.= (row.size xs) (row.size ys))
(list@fold (function (_ idx prev)
(and prev
(maybe.default #0
@@ -173,7 +174,7 @@
(list.indices (row.size xs))))
[(#Object xs) (#Object ys)]
- (and (n/= (dictionary.size xs) (dictionary.size ys))
+ (and (n.= (dictionary.size xs) (dictionary.size ys))
(list@fold (function (_ [xk xv] prev)
(and prev
(case (dictionary.get xk ys)