Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed May 22, 2015
1 parent 14a3205 commit f2a4137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int main() {
p.parse("[null, \"hello\", 10.0]", v);
if(v.is<json::array>()) {
for(auto&& val : v.as<json::array>()) {
std::cout << val.get<std::string>("stuff");
std::cout << val.as<std::string>("stuff");
}
}
}
Expand Down Expand Up @@ -86,6 +86,6 @@ Output:
- Comments, e.g. `// stuff` is planned to be supported in the future.
- The parser is not destructive.
- The parser is recursive descent.
- `int` and `double` types are currently aliased to be the same.
- Numbers are stored in a `double` just like JSON but `v.as<int>` and friends work with caution.
- String is expected to be in UTF-8.
- Some errors are not caught but effort has been made to catch a lot of errors.

0 comments on commit f2a4137

Please sign in to comment.