JSON Parser  1.0
int json_list_object_array_value_add_float_str ( list_object *  list_to_add,
const char *  float_str 
)

Add a new value with a exponential number represented as a string, (instead of a binary floating number) to a JSON Object, defined by the list_object provided.

This function will add a new JSON Value to the provided list_object at the last position of that list.

As the basic C language has limited ability to properly represent very high precision exponential numbers, and this JSON package was designed to be highly portable, only requiring a minimum of C99 to compile and run, it uses the base forms of the language for numbers, and does not rely on any external or optional libraries to handle these numbers. For some users either the limited precision of these forms, or their inability to hold huge numbers will be an issue. So this JSON package provides an option for both the JSON Parser and the JSON Generator to handle these numbers in a textural form instead. This functions allows you to add such a number form to a JSON data structure, for later output into a JSON data block using the JSON Generator.

If there are already elements in this list_object, then they are used to confirm that the list_object requested, is actually a JSON Array. If this is the first element to be added, then as no check can be made, it is assumed the caller is providing a Member to a valid JSON list type. If the list type is incorrect, an error will be thrown up when the second element is added.

Parameters
[in]list_to_addthe list_object of the JSON data hierarchy to add the new Member to.
[in]float_strpointer the a nul terminated string to use as the Array Value
Return values
LIST_OKsuccess, new element added to the list
LIST_ERRon error