Title: SyntaxError: JSON.parse
Last modified: June 26, 2018

---

# SyntaxError: JSON.parse

 *  [sampla](https://wordpress.org/support/users/sampla/)
 * (@sampla)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-3/)
 * Here’s what I get when I try to bulk smush:
 * SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON 
   data
 *     ```
       SyntaxError: JSON.parse: unterminated string literal
       SyntaxError: JSON.parse: bad control character in string literal
       SyntaxError: JSON.parse: bad character in string literal
       SyntaxError: JSON.parse: bad Unicode escape
       SyntaxError: JSON.parse: bad escape character
       SyntaxError: JSON.parse: unterminated string
       SyntaxError: JSON.parse: no number after minus sign
       SyntaxError: JSON.parse: unexpected non-digit
       SyntaxError: JSON.parse: missing digits after decimal point
       SyntaxError: JSON.parse: unterminated fractional number
       SyntaxError: JSON.parse: missing digits after exponent indicator
       SyntaxError: JSON.parse: missing digits after exponent sign
       SyntaxError: JSON.parse: exponent part is missing a number
       SyntaxError: JSON.parse: unexpected end of data
       SyntaxError: JSON.parse: unexpected keyword
       SyntaxError: JSON.parse: unexpected character
       SyntaxError: JSON.parse: end of data while reading object contents
       SyntaxError: JSON.parse: expected property name or '}'
       SyntaxError: JSON.parse: end of data when ',' or ']' was expected
       SyntaxError: JSON.parse: expected ',' or ']' after array element
       SyntaxError: JSON.parse: end of data when property name was expected
       SyntaxError: JSON.parse: expected double-quoted property name
       SyntaxError: JSON.parse: end of data after property name when ':' was expected
       SyntaxError: JSON.parse: expected ':' after property name in object
       SyntaxError: JSON.parse: end of data after property value in object
       SyntaxError: JSON.parse: expected ',' or '}' after property value in object
       SyntaxError: JSON.parse: expected ',' or '}' after property-value pair in object literal
       SyntaxError: JSON.parse: property names must be double-quoted strings
       SyntaxError: JSON.parse: expected property name or '}'
       SyntaxError: JSON.parse: unexpected character
       SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data
       ```
   
 * I get the same error when I try to optimize single images.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * (@resmushit)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-3/#post-10441771)
 * Hi sampla,
 * Can you provide the output of the JSON to find out where the error is located.
 * Cheers,
    Charles
 *  Thread Starter [sampla](https://wordpress.org/support/users/sampla/)
 * (@sampla)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-3/#post-10443158)
 * Hi,
    thanks for responding so soon.
 * Apart from the error, I’m getting a warning when I enter the plugin. `Warning:
   filesize(): stat failed for /usr/home/***/wp-content/plugins/resmushit-image-
   optimizer/classes/resmushit.class.php on line 312`
 * I hope this is what you’re looking for:
 *     ```
       resmushit_bulk_resize/</<
                                    http://www.***.com/wp-content/plugins/resmushit-image-optimizer/js/script.js:115:19
       i                            http://www.***.com/wp-admin/load-scripts.php:2:27444
       fireWith                     http://www.***.com/wp-admin/load-scripts.php:2:28213
       y                            http://www.***.com/wp-admin/load-scripts.php:4:22719
       c                            http://www.***.com/wp-admin/load-scripts.php:4:26925
       ```
   
    -  This reply was modified 7 years, 10 months ago by [sampla](https://wordpress.org/support/users/sampla/).
    -  This reply was modified 7 years, 10 months ago by [sampla](https://wordpress.org/support/users/sampla/).
 *  Plugin Contributor [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * (@resmushit)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-3/#post-10494824)
 * Hi Sampla,
 * Sorry for this very late reply. This error is due to a picture file which is 
   missing on your server. Basically, the file is still “referenced” on your WP 
   Database, but the file is missing on the disk.
 * filesize(): stat failed for <file> means the the <file> is missing (or is corrupted).
   Check that file, and it will run like a charm 🙂
 * Cheers,
    Charles

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘SyntaxError: JSON.parse’ is closed to new replies.

 * ![](https://ps.w.org/resmushit-image-optimizer/assets/icon-256x256.png?rev=3049668)
 * [reSmush.it : The original free image compressor and optimizer plugin](https://wordpress.org/plugins/resmushit-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/resmushit-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/resmushit-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resmushit-image-optimizer/reviews/)

## Tags

 * [syntaxerror](https://wordpress.org/support/topic-tag/syntaxerror/)

 * 3 replies
 * 2 participants
 * Last reply from: [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-3/#post-10494824)
 * Status: not resolved