Fixed an error when the JSON object could not work with circular objects.