added helper for parsing a json file with body answer. using it to simulate error