JSON package object

The JSON package expose differnet methods to compose or parse JSON data.

Initialization

In order to make use of json package, two simple steps are required: the first one is to include the package header file on top of your code, then perform an explicit package inside duda_main() function.

Example:

/* Include package header */
#include "packages/json/json.h"

int duda_main()
{
    ...
    duda_load_package(json, "json");
    ...
    return 0;
}

Once the package is loaded, you can use any methods from your callbacks in the following way:

json->method(...)

Methods