Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

IDL enum in JSON

IDL enumerated types are mapped as constant declarations, where the first symbol maps to zero, the second maps to one, and so on. For example:

typedef enum Color             
{                              
   RED,                        
   YELLOW,                     
   GREEN,                      
};                             

is mapped as:

{                                    
   "RED": 0,                         
   "YELLOW": 1,                      
   "GREEN": 2                        
}