quote interpreted string

This commit is contained in:
Dai Zuozhuo
2015-11-12 15:34:55 +08:00
parent 742243bb4a
commit ad5cc8b599
5 changed files with 23 additions and 19 deletions

View File

@@ -130,7 +130,7 @@ func (j *JSONPath) walk(value []reflect.Value, node Node) ([]reflect.Value, erro
case *ListNode:
return j.evalList(value, node)
case *TextNode:
return []reflect.Value{reflect.ValueOf(string(node.Text))}, nil
return []reflect.Value{reflect.ValueOf(node.Text)}, nil
case *FieldNode:
return j.evalField(value, node)
case *ArrayNode: