Copying and Pasting JSON error

We have a custom property with a valid json structure, but seemingly randomly if you copy, modify, and then paste back that array, this error was thrown:

ValueError: Unable to parse response body as JSON: com.inductiveautomation.ignition.common.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON
1 Like

One notable thing with this custom property @Joe_Spencer notes, it's bidirectionally bound to a document memory tag.

I would suspect some character that needs escaping.

1 Like

We continue to get this error despite the JSON not being malformed.

We have tried it a few ways:

  • We copy the functional JSON out of a view canvas instances array, make a minor swap of text in a string inside a text editor, and try to paste back over the view canvas instances array. It results in this error every time.
  • We attempt to make the change inside the view canvas component's instances in Perspective Properties, or within a view custom property it is bound to. Same error.
  • We can open the memory document tag which the view custom property is bidirectionally bound to, and we can sometimes edit the array directly via the document tag editor. This is slightly more usuable, giving errors only some of the time upon save.
1 Like