![]() |
TerraForge3D
2.3.1
3D Terrain And Landscape Generator
|
|
inline |
add an object to an array
add an object to an array
Appends the given element val to the end of the JSON value. If the function is called on a JSON null value, an empty array is created before appending val.
[in] | val | the value to add to the JSON array |
type_error.308 | when called on a type other than JSON array or null; example: "cannot use push_back() with number" |
@complexity Amortized constant.
@liveexample{The example shows how push_back()
and +=
can be used to add elements to a JSON array. Note how the null
value was silently converted to a JSON array.,push_back}
Definition at line 23175 of file json.hpp.