add naive JSON.extend_chunks method