handle too-large-strings during json manipulation