I try to read the trend values of twitter (see https://api.twitter.com/1/trends/daily.json )
I have got access to the "list" of the trends values (eg items with the object name "2012-07-06 10:00").
I get the assertion error:
Assertion failed: (type_ == nullValue || type_ == arrayValue), function operator, file src/lib_json/json_value.cpp, line 977.
In which way can I get access to the "date objects" ?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I try to read the trend values of twitter (see https://api.twitter.com/1/trends/daily.json )
I have got access to the "list" of the trends values (eg items with the object name "2012-07-06 10:00").
This is a short code excerpt:
If I try to get access with
I get the assertion error:
Assertion failed: (type_ == nullValue || type_ == arrayValue), function operator, file src/lib_json/json_value.cpp, line 977.
In which way can I get access to the "date objects" ?
Thanks
the second code line should be
sorry, I must add some spaces in the code line, because otherwise the index operator is removed
trends seems to be "Object Type". Use Json::ValueIterator for iterating over individual member/entry in the object.