Title: Uncaught SyntaxError: JSON.parse: expected property name
Last modified: May 22, 2026

---

# Uncaught SyntaxError: JSON.parse: expected property name

 *  Resolved [jqz](https://wordpress.org/support/users/jqz/)
 * (@jqz)
 * [1 day, 21 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-json-parse-expected-property-name/)
 * `Uncaught SyntaxError: JSON.parse: expected property name or '}' at line 1 column
   column 2 of the JSON data`
 * I exported a file from `localhost` and tried to import it into a staging site
   on a subdomain. The file does not include plugins, themes or uploads. On import,
   it stalls at 2.12% and there is an error message in the console: “Uncaught SyntaxError:
   JSON.parse: expected property name or ‘}’ at line 1 column 2 of the JSON data”.
 * Both sites are running WordPress 7.0. The localhost site is on Windows. The staging
   site is on Linux. If I import the exported file back into the localhost site,
   it seems to be parsed fine, though I have not clicked the button to actually 
   import it (I don’t want to lose work).
 * I would happily attach the export file, but there doesn’t seem to be an option
   to do that here :/
    -  This topic was modified 1 day, 21 hours ago by [jqz](https://wordpress.org/support/users/jqz/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [jqz](https://wordpress.org/support/users/jqz/)
 * (@jqz)
 * [1 day, 5 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-json-parse-expected-property-name/#post-18916331)
 * Solved it. I had `LimitRequestBody` set to 2Mb in `.htaccess`. This crept in 
   from the main bulk of the file being copied from another (much older) project
   where the setting had been put in to increase the limit (but nowadays results
   in imposing a very low limit).

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-syntaxerror-json-parse-expected-property-name%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/all-in-one-wp-migration/assets/icon-256x256.png?rev=2458334)
 * [All-in-One WP Migration and Backup](https://wordpress.org/plugins/all-in-one-wp-migration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-migration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-migration/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-migration/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [jqz](https://wordpress.org/support/users/jqz/)
 * Last activity: [1 day, 5 hours ago](https://wordpress.org/support/topic/uncaught-syntaxerror-json-parse-expected-property-name/#post-18916331)
 * Status: resolved