added error checking for json parse, worked on hash