From 57e7f71ee614808c85202983cbd020a6cdb52e57 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Thu, 11 Aug 2016 19:16:21 -0700 Subject: [PATCH] escape character in path --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a79d04..99094a6 100644 --- a/README.md +++ b/README.md @@ -49,12 +49,13 @@ Prichard ``` A path is a series of keys seperated by a dot. A key may contain special wildcard characters '*' and '?'. To access an array value use the index as the key. To get the number of elements in an array use the '#' character. - +The dot and wildcard characted can be escaped with '\'. ``` { "name": {"first": "Tom", "last": "Anderson"}, "age":37, - "children": ["Sara","Alex","Jack"] + "children": ["Sara","Alex","Jack"], + "fav.movie": "Deer Hunter" } "name.last" >> "Anderson" "age" >> 37 @@ -62,6 +63,7 @@ A path is a series of keys seperated by a dot. A key may contain special wildcar "children.1" >> "Alex" "child*.2" >> "Jack" "c?ildren.0" >> "Sara" +"fav\.movie" >> "Deer Hunter" ```