mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Update README and tweak syntax in Boost.JSON adapter
This commit is contained in:
parent
2ecd211952
commit
6dab4978be
@ -206,6 +206,7 @@ When building the test suite, Boost 1.54, Qt 5 and Poco are optional dependencie
|
||||
Valijson supports JSON documents loaded using various JSON parser libraries. It has been tested against the following versions of these libraries:
|
||||
|
||||
- [boost::property_tree 1.54](http://www.boost.org/doc/libs/1_54_0/doc/html/boost_propertytree/synopsis.html)
|
||||
- [Boost.JSON 1.75](https://www.boost.org/doc/libs/1_75_0/libs/json/doc/html/index.html)
|
||||
- [json11 (commit afcc8d0)](https://github.com/dropbox/json11/tree/afcc8d0d82b1ce2df587a7a0637d05ba493bf5e6)
|
||||
- [jsoncpp 1.9.4](https://github.com/open-source-parsers/jsoncpp/archive/1.9.4.tar.gz)
|
||||
- [nlohmann/json 1.1.0](https://github.com/nlohmann/json/archive/v1.1.0.tar.gz)
|
||||
|
@ -75,10 +75,11 @@ public:
|
||||
* an array.
|
||||
*/
|
||||
explicit BoostJsonArray(const boost::json::value &value)
|
||||
: m_value(value.as_array()) {
|
||||
: m_value(value.as_array())
|
||||
{
|
||||
// boost::json::value::as_array() will already have thrown an exception
|
||||
// if the underlying value is not an array
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return an iterator for the first element of the array.
|
||||
|
Loading…
Reference in New Issue
Block a user