Array
assemble_json_value_array_first_get_length
AJasonArrayCount assemble_json_value_array_first_get_length(AJsonValue *value);
Description: Returns the number of elements in the ARRAY.assemble_json_value_array_first_get_uniform
int assemble_json_value_array_first_get_uniform(AJsonValue *value);
Description: Returns TRUE if all members of the array are of the same type. (A_JT_TRUE and A_JT_FALSE are considerd the same type.)assemble_json_value_array_first_get_uniform_type
AJsonType assemble_json_value_array_first_get_uniform_type(AJsonValue *value);
Description: Returns the type of the members of the array, or A_JT_MULTIPLE if array contaings multiple different types. (A_JT_TRUE and A_JT_FALSE are considerd the same type.)Types:
Enum:
AJsonType
A_JT_BOOLEAN |
|
= |
|
0 |
|
A_JT_NUMBER |
|
= |
|
1 |
|
A_JT_STRING |
|
= |
|
2 |
|
A_JT_OBJECT |
|
= |
|
3 |
|
A_JT_ARRAY |
|
= |
|
4 |
|
A_JT_NULL |
|
= |
|
5 |
|
A_JT_MODULO |
|
= |
|
8 |
Description: |
A_JT_FALSE |
|
= |
|
A_JT_BOOLEAN |
|
+ |
|
A_JT_MODULO |
|
* |
|
0 |
|
A_JT_TRUE |
|
= |
|
A_JT_BOOLEAN |
|
+ |
|
A_JT_MODULO |
|
* |
|
1 |
|
A_JT_NUMBER_FLOAT |
|
= |
|
A_JT_NUMBER |
|
+ |
|
A_JT_MODULO |
|
* |
|
0 |
|
A_JT_NUMBER_DOUBLE |
|
= |
|
A_JT_NUMBER |
|
+ |
|
A_JT_MODULO |
|
* |
|
1 |
|
A_JT_NUMBER_DECIMAL |
|
= |
|
A_JT_NUMBER |
|
+ |
|
A_JT_MODULO |
|
* |
|
2 |
|
A_JT_MULTIPLE |
|
= |
|
-1 |
assemble_json_value_array_uniform_verify
int assemble_json_value_array_uniform_verify(AJsonValue *array);
Description: /assemble_json_value_array_first_get
AJsonValue *assemble_json_value_array_first_get(AJsonValue *array_value);
Description: Get the first membert in an array. Retunrns Null if the array is empty.assemble_json_value_array_add
AJsonValue *assemble_json_value_array_add(AJsonValue *array, AJsonValue *insert, AJsonValue *after);
Description: Adds the value "insert" to the array. If "after is set to NULL", the insert will be added to the front of the array. If "after" is not NULL, it has to be a value that is already a member of the array, and the "insert" will be places after the "after" value in the array.assemble_json_value_array_add_to_create
AJsonValue *assemble_json_value_array_add_to_create(AJsonValue *array, AJsonValue *after, AJsonType type, double number, char *string);
Description: Creates a new value and inserts it to a object value under the name "name". The new value will be of type "type". If the value is of type A_JT_NUMBER, the "number" param will be used to set its value. If the value is of type A_JT_STRING, the "string" param will be used to set its value. The function will return a pointer to the new object.Types:
Enum:
AJsonType
A_JT_BOOLEAN |
|
= |
|
0 |
|
A_JT_NUMBER |
|
= |
|
1 |
|
A_JT_STRING |
|
= |
|
2 |
|
A_JT_OBJECT |
|
= |
|
3 |
|
A_JT_ARRAY |
|
= |
|
4 |
|
A_JT_NULL |
|
= |
|
5 |
|
A_JT_MODULO |
|
= |
|
8 |
Description: |
A_JT_FALSE |
|
= |
|
A_JT_BOOLEAN |
|
+ |
|
A_JT_MODULO |
|
* |
|
0 |
|
A_JT_TRUE |
|
= |
|
A_JT_BOOLEAN |
|
+ |
|
A_JT_MODULO |
|
* |
|
1 |
|
A_JT_NUMBER_FLOAT |
|
= |
|
A_JT_NUMBER |
|
+ |
|
A_JT_MODULO |
|
* |
|
0 |
|
A_JT_NUMBER_DOUBLE |
|
= |
|
A_JT_NUMBER |
|
+ |
|
A_JT_MODULO |
|
* |
|
1 |
|
A_JT_NUMBER_DECIMAL |
|
= |
|
A_JT_NUMBER |
|
+ |
|
A_JT_MODULO |
|
* |
|
2 |
|
A_JT_MULTIPLE |
|
= |
|
-1 |
assemble_json_value_array_get_allocate
void *assemble_json_value_array_get_allocate(AJsonValue *array, AJsonType output_array_type);
Description: Allocates an array of A_JT_BOOLEAN, A_JT_STRING, A_JT_NUMBER_FLOAT, A_JT_NUMBER_DOUBLE, A_JT_NUMBER_DECIMALTypes:
Enum:
AJsonType
A_JT_BOOLEAN |
|
= |
|
0 |
|
A_JT_NUMBER |
|
= |
|
1 |
|
A_JT_STRING |
|
= |
|
2 |
|
A_JT_OBJECT |
|
= |
|
3 |
|
A_JT_ARRAY |
|
= |
|
4 |
|
A_JT_NULL |
|
= |
|
5 |
|
A_JT_MODULO |
|
= |
|
8 |
Description: |
A_JT_FALSE |
|
= |
|
A_JT_BOOLEAN |
|
+ |
|
A_JT_MODULO |
|
* |
|
0 |
|
A_JT_TRUE |
|
= |
|
A_JT_BOOLEAN |
|
+ |
|
A_JT_MODULO |
|
* |
|
1 |
|
A_JT_NUMBER_FLOAT |
|
= |
|
A_JT_NUMBER |
|
+ |
|
A_JT_MODULO |
|
* |
|
0 |
|
A_JT_NUMBER_DOUBLE |
|
= |
|
A_JT_NUMBER |
|
+ |
|
A_JT_MODULO |
|
* |
|
1 |
|
A_JT_NUMBER_DECIMAL |
|
= |
|
A_JT_NUMBER |
|
+ |
|
A_JT_MODULO |
|
* |
|
2 |
|
A_JT_MULTIPLE |
|
= |
|
-1 |
assemble_json_value_get_next
AJsonValue *assemble_json_value_get_next(AJsonValue *previous);
Description: get the next member of an array. Returns NULL if the end of the array is reached.