summaryrefslogtreecommitdiff
path: root/json/json.go
diff options
context:
space:
mode:
Diffstat (limited to 'json/json.go')
-rw-r--r--json/json.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/json/json.go b/json/json.go
index 7a1bfbb..4155bd2 100644
--- a/json/json.go
+++ b/json/json.go
@@ -16,7 +16,7 @@ var (
}
return Node{Result: ret}
})
- properties = Kleene(And(String(`"`), ":", &value), ",")
+ properties = Kleene(And(StringLit(`"`), ":", &value), ",")
_object = Map(And("{", properties, "}"), func(n Node) Node {
ret := map[string]interface{}{}
@@ -31,7 +31,7 @@ var (
_true = Bind("true", true)
_false = Bind("false", false)
- _string = Map(String(`"`), func(n Node) Node {
+ _string = Map(StringLit(`"`), func(n Node) Node {
return Node{Result: n.Token}
})
)