# Problem parsing JSON with a value that has no wrapped quotes

**URL:** https://community.mp3tag.de/t/problem-parsing-json-with-a-value-that-has-no-wrapped-quotes/50625
**Category:** Web Sources Discussion
**Created:** [October 29, 2020, 8:55pm UTC](https://community.mp3tag.de/t/problem-parsing-json-with-a-value-that-has-no-wrapped-quotes/50625 "2020-10-29T20:55:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [October 29, 2020, 8:55pm UTC](https://community.mp3tag.de/t/problem-parsing-json-with-a-value-that-has-no-wrapped-quotes/50625/1 "2020-10-29T20:55:35Z")

</div>

Here's the file. [Beatport by &stevehero v5.0#Search Release\_TEMP.src](https://community.mp3tag.de/uploads/short-url/zAND5WHt4BQARlpNGhUEHqp7Vce.src) (3.5 KB) The line in question is line 113. I've used this `json_select_many "artists" "id" "\\u005c\\u005c"`but it's not grabbing the info.

The script is setup to search the release automatically which I'm testing on atm. **Deadmau5 - The Remixes (Beatport Expanded Version).**

The array is formatted like so:

```auto
"artists": [{
      "id": 25274,
      "name": "Luigi Daniell",
      "slug": "luigi-daniell"
    }, {
      "id": 37337,
      "name": "JJ-Jefferson",
      "slug": "jj-jefferson"
    }]

```

Is this a bug @Florian as it gets the name and slug value no problem?

**Edit:**  
It works when I fix the wrapping with a fix like so:  
`regexpreplace "(\"id\":\s+)(\d+)" "$1\"$2\""`

---

<div class="post-metadata">

### Author: ![Spider099](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@Spider099](https://community.mp3tag.de/u/Spider099)
#### Post date: [October 30, 2020, 9:35am UTC](https://community.mp3tag.de/t/problem-parsing-json-with-a-value-that-has-no-wrapped-quotes/50625/2 "2020-10-30T09:35:51Z")

</div>

Just a couple of thoughts as cant follow you example as i'm not sure what the actual issue is but...

have you tried single \ rather than double slash  
also id is numeric but i think you are assuming its a string - depends on how the parser works i guess

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [October 30, 2020, 9:50am UTC](https://community.mp3tag.de/t/problem-parsing-json-with-a-value-that-has-no-wrapped-quotes/50625/3 "2020-10-30T09:50:01Z")

</div>

I know it's not a string. I say that in the title. The separator is not the problem.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [October 30, 2020, 11:12am UTC](https://community.mp3tag.de/t/problem-parsing-json-with-a-value-that-has-no-wrapped-quotes/50625/4 "2020-10-30T11:12:01Z")

</div>

It's a bug, or at least a limitation of the feature. I've assumed type string for the selected element which doesn't work for numbers (as in the example).

I've fixed it with [Mp3tag v3.03c](https://community.mp3tag.de/t/455). Thanks for reporting!

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [October 30, 2020, 3:38pm UTC](https://community.mp3tag.de/t/problem-parsing-json-with-a-value-that-has-no-wrapped-quotes/50625/5 "2020-10-30T15:38:12Z")

</div>

I was thinking there was a problem as it was inserting the divider but not the value so it seen it but didn't parse it. Thanks for the fix.
