Added escape for backslash so json did not fail.
Fixed getting the id of category to address changes to HAL format.