fixes of json parsing, added single helper file