We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b63239 commit 7770534Copy full SHA for 7770534
2 files changed
README.md
@@ -57,7 +57,7 @@ clang++ -I <Your Include Path> ./main.cpp
57
すると、以下の結果が返されます。
58
59
```
60
-{"user_info":{"user_id":"A1234567",""user_name"":"Yamada Taro"}}
+{"user_info":{"user_id":"A1234567","user_name":"Yamada Taro"}}
61
A1234567
62
63
src/parser.h
@@ -108,7 +108,7 @@ namespace JsonParser {
108
if (chs[index_current + 1][0] != '"') {
109
throw std::runtime_error("At Object(): '\"' is expected, however other character is set.");
110
}
111
- child = new Node(chs[index_current + 1]);
+ child = new Node(chs[index_current + 1].substr(1, chs[index_current + 1].size() - 2));
112
113
// Check exists ":" between "key" and Value.
114
if (index_current + 2 >= chs.size()) {
0 commit comments