JSON repair logo

JSON repair

Published July 2025
   •    Updated November 2025

Plugin details

Repair invalid JSON documents. This is a plugin designed to fix most of the most common errors in JSON documents that lead to undefined errors, such as:
SyntaxError: JSON.parse: unexpected symbol at line 2 column 18 of the JSON data.
The plugin works both on the client side and on the server side.

Features:
- The following issues can be fixed:
- Add missing quotes around keys
- Add missing escape characters
- Add missing commas
- Add missing closing brackets
- Repair truncated JSON
- Replace single quotes with double quotes
- Replace special quote characters like “...” with regular double quotes
- Replace special white space characters with regular spaces
- Replace Python constants None, True, and False with null, true, and false
- Strip trailing commas
- Strip comments like /* ... */ and // ...
- Strip fenced code blocks like  ```json and ```
- Strip ellipsis in arrays and objects like [1, 2, 3, ...]
- Strip JSONP notation like callback({ ... })
- Strip escape characters from an escaped string like {\"stringified\": \"content\"}
- Strip MongoDB data types like NumberLong(2) and ISODate("2012-12-19T06:01:17.171Z")
- Concatenate strings like "long text" + "more text on next line"
- Turn newline delimited JSON into a valid JSON array, for example:
{ "id": 1, "name": "John" }
{ "id": 2, "name": "Sarah" }

Demo:
For details and demos please visit the plugin page at
https://plugin-preview-7.bubbleapps.io/version-test/jsonrepair

Plugin Page:
https://mindforapps.com/plugin_details/json-repair


Support
If you have any questions, please reach out to us at [email protected]

We always appreciate your reviews and suggestions.

$15

One time  •  Or  $5/mo

stars   •   0 ratings
10 installs  
This plugin does not collect or track your personal data.

Platform

Web & Native mobile

Contributor details

Mind For Apps logo
Mind For Apps
Joined 2018   •   33 Plugins
View contributor profile

Instructions

Client 1) Place the "repair_client" element on the page.
2) In the workflow, use an event (e.g. clicking on the element) to trigger the "repair_client" action.
3) Pass JSON to "repair_client" to check and repair it if possible (JSON field).
4) Once the JSON code is corrected, the "repair_complete" trigger will fire and the corrected JSON code will be written to the "repaired" state.

Server
1) Place in the workflow.
2) Use the "repair_server" action.
3) Pass JSON to "repair_client" to check and repair it if possible (JSON field).
4) Once the JSON code is corrected, you can get the corrected JSON code as a result of the previous step (e.g. the result of step 1 (repair_server)'s repaired).

Types

This plugin can be found under the following types:
Element   •   Event   •   Action

Categories

This plugin can be found under the following categories:
Technical   •   Data (things)   •   Productivity   •   AI   •   Visual Elements

Resources

Support contact
Documentation
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble