Handle object ids in json helper