# Json "ignores" ignores current stream version

**URL:** https://community.mp3tag.de/t/json-ignores-ignores-current-stream-version/16247
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [October 20, 2014, 7:58pm UTC](https://community.mp3tag.de/t/json-ignores-ignores-current-stream-version/16247 "2014-10-20T19:58:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [October 20, 2014, 7:58pm UTC](https://community.mp3tag.de/t/json-ignores-ignores-current-stream-version/16247/1 "2014-10-20T19:58:59Z")

</div>

Found something I didn't expect in JSON "mode".  
JSON loads the original API stream and ignores every change done within web script before switching JSON mode "ON".  
E.g. just a random fictional example. Add leading Zero to single digit track position regexpreplace "("position": ")(?=\d")" "0"

```
JSON "ON"

```

Track position is still extracted with one digit, that means all stream manipulations are simply ignored. ☹ ☹ ☹

JSON is a great feature and (I believe) will be the future of web scripting.  
Currently it can be used for limited functionality.  
Hopefully Development team (Florian???) will amend JSON functionality.

---

<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: [March 16, 2019, 8:43pm UTC](https://community.mp3tag.de/t/json-ignores-ignores-current-stream-version/16247/2 "2019-03-16T20:43:24Z")

</div>

I've added an optional second parameter to the `json` command with [Mp3tag v2.94b](https://community.mp3tag.de/t/455) to choose the current position as input in case the input needs to be transformed before it's used.

```auto
json "on" "current"

```

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [March 17, 2019, 3:26pm UTC](https://community.mp3tag.de/t/json-ignores-ignores-current-stream-version/16247/3 "2019-03-17T15:26:51Z")

</div>

It took +/- 4 years for this feature. I need to go back and check my old devs now. 😃  
Thank you Florian.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [April 16, 2019, 3:27pm UTC](https://community.mp3tag.de/t/json-ignores-ignores-current-stream-version/16247/4 "2019-04-16T15:27:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
