Fixed an issue with JSON data in packed scripts. (Bug #1298)