JSON Parser  1.0
list_object* json_create_new_list_object ( const JSON_value_types  list_type,
const functions_globals_t functions 
)

Create a new list_object to be used to represent either a JSON Object or a JSON Array.

Upon return the caller must check the result, if it is NULL no list_object was created.

Parameters
[in]list_typeEither JSON_object or JSON_array. Depending on what type of list_object you need to create. When created the correct default JSON D-List search and compare functions will be attached to the new list_object.
[in]functionsNULL normal usage, create list_object with default search and compare functions. Pointer to array of functions, override the defaults with these search and compare functions.
Return values
pointerto the list_object of the new list created.
NULLif an internal error occurred.