Skip to content

Commit 1798214

Browse files
committed
JSONキーの取り扱いを修正
1 parent b22f987 commit 1798214

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace JsonParser {
9696
return index + 1;
9797
case '"':
9898
{
99-
Node* child = new Node(chs[index]);
99+
Node* child = new Node(chs[index].substr(1, chs[index].size() - 2));
100100
int index_current = Grammar::Value(index + 2, chs, child);
101101
parent->AppendObject(child);
102102

0 commit comments

Comments
 (0)