🚀 [NEW PLUGIN] JSON repair

Hello fellow Bubblers!
We have recently published a new plugin and would like to share this news with you:

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” }

.
json

Installation:
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).

Demo:
For details and demos please visit the plugin page at

Plugin Page:

Plugin details:

.

Need help adjusting your new application?
Contact us

:hammer_and_wrench: Support
If you have questions, reach out to us at support@mindforapps.com

We appreciate your reviews and suggestions.

Cheers
Jay | Mindforapps

3 Likes