struct json_value {
int type;
union {
- long integer_number;
+ long long integer_number;
double float_number;
char *string;
struct json_object *object;
#define json_array_add_value_array(obj, val) \
json_array_add_value_type((obj), JSON_TYPE_ARRAY, (val))
+#define json_array_last_value_object(obj) \
+ (obj->values[obj->value_cnt - 1]->object)
+
void json_print_object(struct json_object *obj);
#endif