Adding the ID to the json response
Some helper functions and datastructure