Skip to content

Commit

Permalink
Merge pull request #61 from d-frey/master
Browse files Browse the repository at this point in the history
Update taocpp/json to 1.0.0-beta.3
  • Loading branch information
miloyip authored Sep 8, 2016
2 parents 1f18db7 + 6392558 commit cb0a641
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Library | Language | Version | Notes
[SimpleJSON](https://github.com/MJPA/SimpleJSON) | C++ |
[sheredom/json.h](https://github.com/sheredom/json.h) | C | | Not parsing number per se, so do it as post-process.
udp/json | C | 1.1.0 | Actually 2 libraries: [udp/json-parser](https://github.com/udp/json-parser) & [udp/json-builder](https://github.com/udp/json-builder).
[taocpp/json](https://github.com/taocpp/json) | C++11 | 1.0.0-beta.2 | Uses [PEGTL](https://github.com/ColinH/PEGTL) for parsing
[taocpp/json](https://github.com/taocpp/json) | C++11 | 1.0.0-beta.3 | Uses [PEGTL](https://github.com/ColinH/PEGTL) for parsing
[tunnuz/JSON++](https://github.com/tunnuz/json) | C++ |
[ujson](https://bitbucket.org/awangk/ujson/) | C++ | 2015-04-12 |
[ujson4c](https://github.com/esnme/ujson4c) | C |
Expand Down
4 changes: 2 additions & 2 deletions src/tests/taocppjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class TAOCPPJSONTest : public TestBase {
virtual bool ParseDouble(const char* j, double* d) const {
try {
auto root = tao::json::from_string(j);
*d = root.at(0).get_double();
*d = root[0].get_double();
return true;
}
catch (...) {
Expand All @@ -126,7 +126,7 @@ class TAOCPPJSONTest : public TestBase {
virtual bool ParseString(const char* j, std::string& s) const {
try {
auto root = tao::json::from_string(j);
s = root.at(0).get_string();
s = root[0].get_string();
return true;
}
catch (...) {
Expand Down

0 comments on commit cb0a641

Please sign in to comment.