Iterating through objects in JsonCpp

You have some errors related to seemingly not having a great handle on recursion or the key->value nature of JSON and how that relates to the library you’re using. I haven’t tested this code at all, but it should work better. void CDriverConfigurator::PrintJSONValue( const Json::Value &val ) { if( val.isString() ) { printf( “string(%s)”, val.asString().c_str() … Read more

Reading json files in C++

Yes you can create a nested data structure people which can be indexed by Anna and Ben. However, you can’t index it directly by age and profession (I will get to this part in the code). The data type of people is of type Json::Value (which is defined in jsoncpp). You are right, it is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)