Barracuda Application Server C/C++ Reference
NO
JParserVal Struct Reference

Detailed Description

The parser sets a JParserVal before calling the parser callback JParserIntf.

#include <JParser.h>

Public Attributes

union {
   char *   s
 If string.
 
   double   f
 If number of type double.
 
   S32   d
 If integer.
 
   U64   l
 If long integer.
 
v
 A union controlled by the type 't'.
 
char * memberName
 object member name is set for objects. More...
 
JParserT t
 The type controlling 'v'.
 

Member Data Documentation

◆ memberName

char* JParserVal::memberName

object member name is set for objects.

Use the following construction to differentiate between an object/array:

if(*val->memberName)
{
// object
}
else
{
// array
}