summaryrefslogtreecommitdiff
path: root/json/json.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-08 19:24:49 +1000
committerAdam Scarr <adam@vektah.net>2017-08-08 19:36:32 +1000
commitb835581a732f3311e18aad10286d43f50a6006cf (patch)
tree3b45edcd651019003c4b4c7efb2b9ba7308d4d27 /json/json.go
parent6e1c004fea8d841f554c2e94ff39e1fcee94b4e3 (diff)
complete string implementation
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 13db8a5..7a1bfbb 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(String(`"`), ":", &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(String(`"`), func(n Node) Node {
return Node{Result: n.Token}
})
)