JSON Property Name Cleaner

Parses the property names in JSON to remove any known problem characters.

Specify the json column, and the list of individual characters to be removed, using a regex character set (sequence of characters and character-ranges enclosed in [ ] )

Updated v1.1 - also returns a table of property names wth their replacement names.



@takbb Brian Bates 27 May 2023

Options

JSON to be cleaned
Choose the column containing the json to be cleaned
Characters to remove
Specify any known problem characters in the property names that are causing issues. This should be specified as a regex "character set" which identifies the set of characters to be removed, enclosed in [ ].%%00010%%00010e.g.%%00010%%00010To specify removal of just commas and single quotes, use%%00010%%00010[',]%%00010%%00010To specify removal of all non-alphanumerics, you can use the ^ regex character for "not"%%00010[^A-Za-z0-9]%%00010%%00010%%00010For help on syntax, search web for: "regex character sets and ranges"%%00010e.g. https://www.regular-expressions.info/charclass.html%%00010

Input Ports

Icon
A table containing a JSON column to be parsed

Output Ports

Icon
The JSON with selected characters removed from the property names
Icon
A list of property key names and found in the source json, and their replacements in the output

Nodes

Extensions

Links