#ifndef JSON_H #define JSON_H #include #include #include #include #include namespace JSON { // TODO: Support null. typedef boost::make_recursive_variant< bool, int, float, std::string, std::vector, std::map >::type Value; typedef std::vector Array; typedef std::map Object; //! Parse JSON string into value-tree. bool parse(const std::string& s, Value& v); }; //! Write JSON to stream. std::ostream& operator<<(std::ostream& s, const JSON::Value& v); #endif