Skip to content

Commit

Permalink
Issue #4: Fixes path parsing for ["strings"].
Browse files Browse the repository at this point in the history
  • Loading branch information
tgockel committed Oct 8, 2014
1 parent 28b6a54 commit 244d792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsonv/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::size_t>(match.data() + 1, match.size() - 2);
break;
Expand Down

0 comments on commit 244d792

Please sign in to comment.