![]() |
TerraForge3D
2.3.1
3D Terrain And Landscape Generator
|
|
inlinenoexcept |
get a value (explicit)
Explicit type conversion between the JSON value and a compatible value. The value is filled into the input parameter by calling the json_serializer<ValueType> from_json()
method.
The function is equivalent to executing
This overloads is chosen if:
from_json()
method of the form void from_json(const basic_json&, ValueType&)
, andValueType | the input parameter type. |
what | json_serializer<ValueType> from_json() method throws |
@liveexample{The example below shows several conversions from JSON values to other types. There a few things to note: (1) Floating-point numbers can be converted to integers\, (2) A JSON array can be converted to a standard std::vector<short>
\, (3) A JSON object can be converted to C++ associative containers such as std::unordered_map<std::string\, json>
.,get_to}
Definition at line 20992 of file json.hpp.