# Anki messes up my json; why?

**URL:** <https://forums.ankiweb.net/t/anki-messes-up-my-json-why/68575>\
**Category:** Card Design\
**Created:** [January 31, 2026, 10:17pm UTC](https://forums.ankiweb.net/t/anki-messes-up-my-json-why/68575 "2026-01-31T22:17:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [February 1, 2026, 1:46pm UTC](https://forums.ankiweb.net/t/anki-messes-up-my-json-why/68575/6 "2026-02-01T13:46:44Z")

</div>

> [@TheIRS-PayUp](#):
>
> Are you saying to instead do something like
> 
> ```auto
> <div>{{js_field}}</div>
> 
> ```
> 
> And then use js to extract that field?

Basically, yes. You can add an Id to locate the element more easily from JS, and then use something like

```auto
jsonString = document.getElementById('jsonField').textContent;
let x = JSON.parse(jsonString);

```

( keep in mind that you’ll need to change single quotes around `43%` and `34%` in your original string to double quotes as well)

---

_[View the full topic](https://forums.ankiweb.net/t/anki-messes-up-my-json-why/68575)._
