Added JSON editor/validator to table options advanced column in Data Publisher

JSON editor/validator

The code editor was added to the table options advanced column in the Data Publisher. The content of this column must be valid JSON. By default the code editor helps to check if the content is valid JSON while being entered.

Disable JSON editor/validator

The JSON entered in the table options advanced column may contain javascript functions. For this reason the plugin allows to add new lines for readability. These new line charaters however are not allowed in a JSON string and are removed from the string before it is being applied to a publication. If you prefer to be able to add new lines in your JSON, you can disable the JSON editor/validator as follows:

  • Go to menu Settings
  • Click on menu item WP Data Access
  • Click on tab Data Publisher
  • In JSON editing click: “Use textarea without JSON validation”
  • Save settings

Peter Schulz is a lecturer in information technology at the HAN university of applied sciences. He is an experienced programmer with more than 25 years experience in Oracle databases and tools. Peter is the developer of WordPress plugin WP Data Access.

Leave a Reply

Your email address will not be published.