Simple utility to do a json request