diff options
Diffstat (limited to 'src/components/formatters/src/generic_json_formatter.cc')
-rw-r--r-- | src/components/formatters/src/generic_json_formatter.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/formatters/src/generic_json_formatter.cc b/src/components/formatters/src/generic_json_formatter.cc index 07b03484d2..a0096a0983 100644 --- a/src/components/formatters/src/generic_json_formatter.cc +++ b/src/components/formatters/src/generic_json_formatter.cc @@ -33,6 +33,7 @@ // POSSIBILITY OF SUCH DAMAGE. #include "formatters/generic_json_formatter.h" +#include "utils/jsoncpp_reader_wrapper.h" namespace ns_smart_device_link { namespace ns_json_handler { @@ -48,10 +49,10 @@ void GenericJsonFormatter::ToString(const ns_smart_objects::SmartObject& obj, bool GenericJsonFormatter::FromString(const std::string& str, ns_smart_objects::SmartObject& out) { Json::Value json_root; - Json::Reader reader; - bool result = reader.parse(str, json_root); + utils::JsonReader reader; + const bool result = reader.parse(str, &json_root); - if (true == result) { + if (result) { jsonValueToObj(json_root, out); } |