Torque2D Reference
Public Attributes | List of all members
yajl_val_s Struct Reference

#include <yajl_tree.h>

Public Attributes

yajl_type type
 
union {
   char *   string
 
   struct {
      long long   i
 
      double   d
 
      char *   r
 
      unsigned int   flags
 
   }   number
 
   struct {
      const char **   keys
 
      yajl_val *   values
 
      size_t   len
 
   }   object
 
   struct {
      yajl_val *   values
 
      size_t   len
 
   }   array
 
u
 
union {
   char *   string
 
   struct {
      long long   i
 
      double   d
 
      char *   r
 
      unsigned int   flags
 
   }   number
 
   struct {
      const char **   keys
 
      yajl_val *   values
 
      size_t   len
 
   }   object
 
   struct {
      yajl_val *   values
 
      size_t   len
 
   }   array
 
u
 

Detailed Description

A JSON value representation capable of holding one of the seven types above. For "string", "number", "object", and "array" additional data is available in the union. The "YAJL_IS_*" and "YAJL_GET_*" macros below allow type checking and convenient value extraction.

Member Data Documentation

struct { ... } array
struct { ... } array
double d
unsigned int flags
long long i
const char** keys
size_t len
struct { ... } number
struct { ... } number
struct { ... } object
struct { ... } object
char* r

Signals whether the i and d members are valid. See YAJL_NUMBER_INT_VALID and YAJL_NUMBER_DOUBLE_VALID.

char* string
yajl_type type

Type of the value contained. Use the "YAJL_IS_*" macors to check for a specific type.

union { ... } u

Type-specific data. You may use the "YAJL_GET_*" macros to access these members.

union { ... } u

Type-specific data. You may use the "YAJL_GET_*" macros to access these members.

yajl_val* values

The documentation for this struct was generated from the following file: