fix the global declaration of JSON object, avoiding ruining the original JSON object