rewrite longIds and parentIds to strings in json hacks