diff options
Diffstat (limited to 'cdec_json_parser/json_parse.cc')
-rw-r--r-- | cdec_json_parser/json_parse.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/cdec_json_parser/json_parse.cc b/cdec_json_parser/json_parse.cc deleted file mode 100644 index 4580fc8..0000000 --- a/cdec_json_parser/json_parse.cc +++ /dev/null @@ -1,31 +0,0 @@ -#include "json_parse.h" - -#include <string> -#include <iostream> - -using namespace std; - - -bool JSONParser::HandleJSONEvent(int type, const JSON_value* value) { - switch(type) { - case JSON_T_OBJECT_BEGIN: - case JSON_T_OBJECT_END: - case JSON_T_ARRAY_BEGIN: - case JSON_T_ARRAY_END: - case JSON_T_NULL: - case JSON_T_TRUE: - case JSON_T_FALSE: - case JSON_T_KEY: - case JSON_T_INTEGER: - case JSON_T_FLOAT: - break; - case JSON_T_STRING: - string s = value->vu.str.value; - string t = s.substr(1, 4); - if (t == "Goal") - cerr << t << endl; - break; - } - return true; -} - |