Angular strips out $type from JSON, replaced with stringify.