Skip to content
JsonData

SetJsonData

JsonBlock& SetJsonData(const JsonBlock data)

Will set this JsonData's JsonBlock-data to a copy of data, and will set its type to JSON.

Returns a reference to the the copy actually stored in this JsonData.


What does JsonBlock-data actually represent? For example the value of p_info:

{
    "p_info": {
        "name": "Griffin",
        "height": "a lot"
    }
}

Aliases

Alternative ways to call this function

  • myJsonData = myJsonBlock;