From 244d792e9b0a9047fb1ebec866bc5653c46f2f10 Mon Sep 17 00:00:00 2001 From: Travis Gockel Date: Tue, 7 Oct 2014 23:21:19 -0600 Subject: [PATCH] Issue #4: Fixes path parsing for ["strings"]. --- src/jsonv/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsonv/path.cpp b/src/jsonv/path.cpp index bce9f7c..76ac35e 100644 --- a/src/jsonv/path.cpp +++ b/src/jsonv/path.cpp @@ -277,7 +277,7 @@ path path::create(string_ref specification) break; case '[': if (match.at(1) == '\"') - out += detail::get_string_decoder(parse_options::encoding::utf8)(match.substr(1, match.size() - 2)); + out += detail::get_string_decoder(parse_options::encoding::utf8)(match.substr(2, match.size() - 4)); else out += boost::lexical_cast(match.data() + 1, match.size() - 2); break;