Freeman Oldman / NUCLEO_STM32F401RE_CC3000_ILI9341
Embed: (wiki syntax)

« Back to documentation index

MVJSONNode Class Reference

MVJSONNode Class Reference

JSON Node (Object) More...

#include <JsonParser.h>

Public Member Functions

bool hasField (string name)
 check that object has field
MVJSONValuegetField (string name)
 get field by name
double getFieldDouble (string name)
 get value of double field
int getFieldInt (string name)
 get value of int field
string getFieldString (string name)
 get value of string field
bool getFieldBool (string name)
 get value of bool field

Data Fields

vector< MVJSONValue * > values
 values (props)

Detailed Description

JSON Node (Object)

Definition at line 109 of file JsonParser.h.


Member Function Documentation

MVJSONValue * getField ( string  name )

get field by name

Definition at line 227 of file JsonParser.cpp.

bool getFieldBool ( string  name )

get value of bool field

Definition at line 262 of file JsonParser.cpp.

double getFieldDouble ( string  name )

get value of double field

Definition at line 237 of file JsonParser.cpp.

int getFieldInt ( string  name )

get value of int field

Definition at line 246 of file JsonParser.cpp.

string getFieldString ( string  name )

get value of string field

Definition at line 254 of file JsonParser.cpp.

bool hasField ( string  name )

check that object has field

Definition at line 218 of file JsonParser.cpp.


Field Documentation

vector<MVJSONValue*> values

values (props)

Definition at line 114 of file JsonParser.h.