我正在尝试从JSON加载数据到我的网站。在一段时间内,一切都正常工作,但今晚我突然开始收到以下错误。(到目前为止,它在本地主机上工作) Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at FileReader<anonymous> Javascript调用JSON的过程如下: function readJSON(path) {
php echo json_encode($package_size_array, JSON_PRETTY_PRINT); ?>">Size</option> var id = $(this).children(':selected').attr('id');
alert(JSON.parse(id)); /* Line 217.