implementation of timeout in json file parser

hi,
I am using boost library for parsing json file .What i want to achieve is when i read one part of xml like :
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"01:00:34":{
            "event":"connect",
            "topic":"rpi2/temp",
            "qos":"1"
           },
"01:00:47":{
            "event":"subscribe",
            "id":"id1",
            "topic":"rpi2/temp",
            "qos":"1"
           }        
}   

when i complete reading the first sub json after that i must give a timeout of
"01:00:34" which is the json key in this case.and after expiration of this time i must do some work in main() and then start reading the json from where i left.Is there any way to do that either by boost library or by C++ Standard library?
Thanks,
Kushal
Last edited on
Boost's JSON parser is dreadful. Try RapidJSON instead.

In any event, you're using the parser incorrectly. The parsers tend to run and create a document that you can query.

You are mixing parsing and processing.
Topic archived. No new replies allowed.