Title: Import JSON File Error – Invalid File Type
Last modified: August 13, 2026

---

# Import JSON File Error – Invalid File Type

 *  [anish9947](https://wordpress.org/support/users/anish9947/)
 * (@anish9947)
 * [1 day, 12 hours ago](https://wordpress.org/support/topic/import-json-file-error-invalid-file-type/)
 * Hello,
 * I’m using the **Text Replace – Find and Replace WordPress Strings** plugin.
 * I’m having an issue with the **Import** feature. When I try to import a JSON 
   file, I get this error:
 * **“Invalid file type. Please upload a JSON file.”**
 * I have tried importing these files:
    - `sample-import.json`
    - `easy-text-replace-export_2026-08-13_16-25-20.json`
 * Both files have the `.json` extension, but the plugin still shows the same error.
 * Could you please help me understand why the plugin is not accepting these JSON
   files?
 * If there is a specific JSON structure or file format required for importing, 
   please provide an example or let me know how I should format the file.
 * Thank you for your help.

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

 *  Plugin Author [SH Sajal Chowdhury](https://wordpress.org/support/users/shsajalchowdhury/)
 * (@shsajalchowdhury)
 * [1 day, 9 hours ago](https://wordpress.org/support/topic/import-json-file-error-invalid-file-type/#post-18992889)
 * Hi [@anish9947](https://wordpress.org/support/users/anish9947/),
 * Thanks for reporting this, I appreciate you flagging it. I’m looking into what
   might be causing it, which will take a bit of testing on my end to confirm. If
   I find a bug, I’ll get a fix released as soon as possible.
 * Warm regards,
   Sajal
 *  Plugin Author [SH Sajal Chowdhury](https://wordpress.org/support/users/shsajalchowdhury/)
 * (@shsajalchowdhury)
 * [1 day, 7 hours ago](https://wordpress.org/support/topic/import-json-file-error-invalid-file-type/#post-18992981)
 * Hi [@anish9947](https://wordpress.org/support/users/anish9947/) ,
 * Good news, I found the issue and released a fix in the latest version.
 * WordPress.org’s update servers can take a little while to reflect on your dashboard,
   so if you don’t see it right away, check again in a few hours under Updates →
   Plugins. If you’d rather not wait, you can also grab the latest version straight
   from the plugin page and reinstall it manually.
 * Let me know how it goes, happy to help if anything’s still off.
 * Warm regards,
   Sajal
 *  Thread Starter [anish9947](https://wordpress.org/support/users/anish9947/)
 * (@anish9947)
 * [1 day ago](https://wordpress.org/support/topic/import-json-file-error-invalid-file-type/#post-18993141)
 * Hi Sajal,
 * Thank you for finding and fixing the previous issue.
 * I updated the plugin and the import now accepts the `sample-import.json` file
   successfully. However, I’m still having an issue with the actual exported JSON
   file.
 * When I try to import:
 * `easy-text-replace-export_2026-08-13_16-25-20.json`
 * the plugin now shows:
 * **“Invalid JSON format.”**
 * So it seems the file-type validation issue has been fixed, but the exported JSON
   file is still not being accepted.
 * Could you please check whether the JSON structure generated by the Export feature
   is compatible with the Import feature?
 * Since the sample JSON works but the exported JSON does not, could you please 
   let me know:
    1. What exact JSON structure is required for importing?
    2. Whether the Export-generated JSON should be directly importable?
    3. If possible, could you provide an example of a valid JSON file containing multiple
       text replacements?
 * If the exported file is supposed to be importable directly, there may still be
   an issue with the export/import format compatibility.
 * Thank you for your help.
 * Warm regards,
 *  Plugin Author [SH Sajal Chowdhury](https://wordpress.org/support/users/shsajalchowdhury/)
 * (@shsajalchowdhury)
 * [20 hours, 25 minutes ago](https://wordpress.org/support/topic/import-json-file-error-invalid-file-type/#post-18993312)
 * Hi [@anish9947](https://wordpress.org/support/users/anish9947/),
 * Thanks for the detailed report, that helped a lot in tracking this down.
 * I identified the issue: the Export feature was generating a JSON structure slightly
   different from what Import expected, which is why the sample file worked but 
   your exported file didn’t.
 * I’ve fixed this and released a new version. Could you please update the plugin
   and try exporting and importing again? It should now work end-to-end.
 * Let me know if you run into any further issues.
 * Warm regards,
   Sajal
 *  Thread Starter [anish9947](https://wordpress.org/support/users/anish9947/)
 * (@anish9947)
 * [15 hours, 6 minutes ago](https://wordpress.org/support/topic/import-json-file-error-invalid-file-type/#post-18993622)
 * Hello Sajal,
 * Thank you for the update. I updated the plugin, and the Export/Import feature
   is now working fine.
 * However, I’m facing two other issues with the text replacement feature:
    1. **WooCommerce – Edit Shipping Address**
       I’m trying to replace the WooCommerce**“
       Edit shipping address”** text with **“View shipping address”** using the plugin,
       but the text is not being replaced.
    2. **Theme Footer Credit**
       I’m also trying to replace the **theme footer credit
       text**, but the plugin is not changing this text either.
 * Could you please check why these strings are not being replaced and let me know
   if there is anything I need to configure differently?
 * Thanks for your support.
 *  Plugin Author [SH Sajal Chowdhury](https://wordpress.org/support/users/shsajalchowdhury/)
 * (@shsajalchowdhury)
 * [8 hours, 37 minutes ago](https://wordpress.org/support/topic/import-json-file-error-invalid-file-type/#post-18993982)
 * Hi [@anish9947](https://wordpress.org/support/users/anish9947/) ,
 * Great to hear the Export/Import issue is resolved!
 * Thanks for reporting these two, I’ll look into why the WooCommerce “Edit shipping
   address” text and the theme footer credit text aren’t being caught by the replacement
   feature. These are likely rendered in a way (e.g., dynamically generated, translated
   via a different function, or loaded from a template that runs before/after our
   replacement hook) that the plugin isn’t currently catching, but I’ll dig in and
   confirm.
 * If I find an issue, I’ll fix it and release it in an upcoming version, I’ll follow
   up here once that’s done.
 * In the meantime, if you’re happy with the support so far, a quick honest feedback
   would mean a lot, it really helps other users find the plugin and keeps me motivated
   to keep improving it.
 * Thanks again for your patience and for the clear reports, they make a real difference.
 * Warm regards,
 *  Thread Starter [anish9947](https://wordpress.org/support/users/anish9947/)
 * (@anish9947)
 * [1 hour, 6 minutes ago](https://wordpress.org/support/topic/import-json-file-error-invalid-file-type/#post-18994167)
 * Hello,
 * Thanks for your reply.
 * I have one more request. On the **“All Replacements”** page, could you please
   add a **“Case Sensitive”** option with **Enabled/Disabled** settings?
 * Otherwise, it will take a lot of time to open each replacement one by one.
 * Thank you.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fimport-json-file-error-invalid-file-type%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/easy-text-replace/assets/icon-128x128.png?rev=3402755)
 * [Text Replace - Find and Replace WordPress Strings](https://wordpress.org/plugins/easy-text-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-text-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-text-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-text-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-text-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-text-replace/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [anish9947](https://wordpress.org/support/users/anish9947/)
 * Last activity: [1 hour, 6 minutes ago](https://wordpress.org/support/topic/import-json-file-error-invalid-file-type/#post-18994167)
 * Status: not resolved