29#ifndef NOMLIB_SERIALIZERS_JSONCPP_DESERIALIZER_HPP
30#define NOMLIB_SERIALIZERS_JSONCPP_DESERIALIZER_HPP
35#include "nomlib/config.hpp"
36#include "nomlib/serializers/serializers_config.hpp"
37#include "nomlib/serializers/IValueDeserializer.hpp"
38#include "nomlib/ptree.hpp"
91 bool load(
const std::string& filename,
Value& output );
96 bool read(
const Json::Value& source,
Value& dest )
const;
112std::unique_ptr<IValueDeserializer> make_unique_json_deserializer();
bool read_array(const Json::Value &object, Value &dest) const
Internal helper method for un-serialization of array nodes.
bool load(const std::string &filename, Value &output)
Convenience method provided to store JSON-formatted data from a file.
~JsonCppDeserializer(void)
Destructor.
bool read_object(const Json::Value &object, Value &dest) const
Internal helper method for un-serialization of object nodes.
JsonCppDeserializer(uint32 options)
Construct a parser with a feature set enumeration.
Value deserialize(const std::string &source)
Parse JSON data as a nom::Value object.
bool read_value(const Json::Value &object, Value &dest) const
JsonCppDeserializer(void)
Default constructor; initialize the parser to strict mode compliance.
Generic interface for opaque data containers.