Solved by lamhoangtung in post #3 
              
              
                As answer by https://stackoverflow.com/users/10886420/szymon-maszke on the StackOverFlow question. The correct way to do this is: 
auto a = output.at("key_a")