add thought, and fix a bug in json parsing