# Copying and Pasting JSON error

**URL:** <https://forum.inductiveautomation.com/t/copying-and-pasting-json-error/101996>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 6, 2025, 7:12pm UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-json-error/101996 "2025-02-06T19:12:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Spencer](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Joe\_Spencer](https://forum.inductiveautomation.com/u/Joe_Spencer)\
**Post date:** [February 6, 2025, 7:12pm UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-json-error/101996/1 "2025-02-06T19:12:16Z")

</div>

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:

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

```

---

<div class="post-metadata">

**Author:** ![msteele](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/msteele/32/77889_2.png) [@msteele](https://forum.inductiveautomation.com/u/msteele)\
**Post date:** [February 6, 2025, 7:26pm UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-json-error/101996/2 "2025-02-06T19:26:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 6, 2025, 7:33pm UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-json-error/101996/3 "2025-02-06T19:33:36Z")

</div>

I would suspect some character that needs escaping.

---

<div class="post-metadata">

**Author:** ![msteele](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/msteele/32/77889_2.png) [@msteele](https://forum.inductiveautomation.com/u/msteele)\
**Post date:** [February 7, 2025, 7:11pm UTC](https://forum.inductiveautomation.com/t/copying-and-pasting-json-error/101996/4 "2025-02-07T19:11:29Z")

</div>

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.
