JSONObject object = new JSONObject(message);
String objectString = object.getString(object.names().get(0));
But it will only work if you sure that NextTransactionUrl node exists. By the way, in this case, this node could have another name, it will still work.