moved normalizeId to JSONSerializer