return json with all the information