aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json/validator.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-28 15:01:11 +0100
committergingerBill <bill@gingerbill.org>2021-09-28 15:01:11 +0100
commitd452758afc2a503bc5bc04da04cfdd4af90da1ac (patch)
tree15044c491080813957c99d7cce32ab148a7c00fa /core/encoding/json/validator.odin
parentc9330548726965ffe64f97c37b43bc96a30f4dc7 (diff)
Improve MJSON handling
Diffstat (limited to 'core/encoding/json/validator.odin')
-rw-r--r--core/encoding/json/validator.odin7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/encoding/json/validator.odin b/core/encoding/json/validator.odin
index 085dd384a..961c2dc23 100644
--- a/core/encoding/json/validator.odin
+++ b/core/encoding/json/validator.odin
@@ -102,6 +102,13 @@ validate_value :: proc(p: ^Parser) -> bool {
case .Open_Bracket:
return validate_array(p)
+
+ case .Ident:
+ if p.spec == .MJSON {
+ advance_token(p)
+ return true
+ }
+ return false
case:
if p.spec != .JSON {