From 08456b8ff0e273ee670c4d9e5fcce00d2c7b2805 Mon Sep 17 00:00:00 2001 From: Niels Date: Tue, 6 Jan 2015 19:14:03 +0100 Subject: [PATCH] minor changes --- README.md | 6 +++++- test/json_unit.cc | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ef6a0c57..7f42b530 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,11 @@ You can create an object (deserialization) by appending `_json` to a string lite json j = "{ \"pi\": 3.141, \"happy\": true }"_json; // or even nicer (thanks http://isocpp.org/blog/2015/01/json-for-modern-cpp) -auto j2 = R"( {"pi": 3.141, "happy": true} )"_json; +auto j2 = R"( + { + "pi": 3.141, + "happy": true + })"_json; ``` You can also get a string representation (serialize): diff --git a/test/json_unit.cc b/test/json_unit.cc index 3282b71a..32132c82 100644 --- a/test/json_unit.cc +++ b/test/json_unit.cc @@ -1778,7 +1778,10 @@ TEST_CASE("Parser") auto j3 = "{\"key\": \"value\"}"_json; CHECK(j3["key"] == "value"); - auto j22 = R"({"pi": 3.141, "happy": true })"_json; + auto j22 = R"({ + "pi": 3.141, + "happy": true + })"_json; auto j23 = "{ \"pi\": 3.141, \"happy\": true }"_json; CHECK(j22 == j23); }