MCPcopy Create free account
hub / github.com/PrincetonVision/marvin / parseObjectArray

Method parseObjectArray

marvin.hpp:757–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755 }
756 };
757 void parseObjectArray(std::string input){
758 type = JSON_ObjectArray;
759
760 input = input.substr(1,input.size()-2);
761
762 while (input.size()>0){
763 int e = input.find("}")+1;
764 if (e==std::string::npos){
765 e = input.size();
766 }
767 std::string first = input.substr(0,e);
768 JSON* pObj = new JSON;
769 pObj->parseObject(first);
770 array.push_back((void*)pObj);
771
772 if(e+1<input.size())
773 input=input.substr(e+1);
774 else
775 break;
776 }
777 };
778};
779
780#define SetValue(obj,attribute,value) obj->set(#attribute,attribute,value);

Callers 1

parseNetworkJSONFunction · 0.80

Calls 1

parseObjectMethod · 0.80

Tested by

no test coverage detected