changed output stacktrace format to json

There is a problem here; I need to check in the for loop if we are at the last element. just like on line 272. But it doesn't work the same way std::get<2>(ext.addresses.find(ext.myAddress)->second). How can i find what type that is returning?