Vuo  2.3.2
VuoJsonUtilities.hh
Go to the documentation of this file.
1 
10 #pragma once
11 
16 {
17 public:
18  static string parseString(json_object *o, string key, string defaultString="", bool *foundValue=NULL);
19  static string parseObjectString(json_object *o, string outerKey, string innerKey, string defaultString="", bool *foundValue=NULL);
20  static int parseInt(json_object *o, string key, int defaultInt=0, bool *foundValue=NULL);
21  static bool parseBool(json_object *o, string key, bool defaultBool=false, bool *foundValue=NULL);
22  static vector<string> parseArrayOfStrings(json_object *o, string key);
23 
24  static json_object *getJson(vector<string> strings);
25 };