Rename to SJSON for the Simplified JSON notation variant

This commit is contained in:
gingerBill
2022-06-16 15:49:08 +01:00
parent 84a424f21e
commit f2ecda8fec
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ parse_string :: proc(data: string, spec := DEFAULT_SPECIFICATION, parse_integers
return parse_object(&p) return parse_object(&p)
case .JSON5: case .JSON5:
return parse_value(&p) return parse_value(&p)
case .MJSON: case .SJSON:
#partial switch p.curr_token.kind { #partial switch p.curr_token.kind {
case .Ident, .String: case .Ident, .String:
return parse_object_body(&p, .EOF) return parse_object_body(&p, .EOF)
+3 -2
View File
@@ -33,8 +33,9 @@ package json
Specification :: enum { Specification :: enum {
JSON, JSON,
JSON5, // https://json5.org/ JSON5, // https://json5.org/
MJSON, // https://bitsquid.blogspot.com/2009/10/simplified-json-notation.html SJSON, // https://bitsquid.blogspot.com/2009/10/simplified-json-notation.html
Bitsquid = MJSON, Bitsquid = SJSON,
MJSON = SJSON,
} }