# \[DEPRECATED Thread: visit community.webcore.co for assistance\] webCoRE - Piston Design Help (ask your fellow members for assistance)

**URL:** <https://community.smartthings.com/t/deprecated-thread-visit-community-webcore-co-for-assistance-webcore-piston-design-help-ask-your-fellow-members-for-assistance/86345>\
**Category:** webCoRE\
**Tags:** core, webcore\
**Created:** [May 2, 2017, 4:29pm UTC](https://community.smartthings.com/t/deprecated-thread-visit-community-webcore-co-for-assistance-webcore-piston-design-help-ask-your-fellow-members-for-assistance/86345 "2017-05-02T16:29:14Z")\
**Posts on this page:** 1\
**Showing post:** 673

<div class="post-metadata">

**Author:** ![Michael\_D](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/michael_d/32/17060_2.png) [@Michael\_D](https://community.smartthings.com/u/Michael_D)\
**Post date:** [May 20, 2017, 10:23pm UTC](https://community.smartthings.com/t/deprecated-thread-visit-community-webcore-co-for-assistance-webcore-piston-design-help-ask-your-fellow-members-for-assistance/86345/673 "2017-05-20T22:23:26Z")

</div>

I am trying to pull the URI of the currently playing track on a sonos speaker and then use that elsewhere. I am able to pull all of the track data and store that in a variable, but it is more text than just the URI itself. Is there a way to get a substring of the variable text I stored?

![](https://global.discourse-cdn.com/smartthings/original/3X/f/7/f766b699ded96cf1cdbed099802090dcec3f49eb.png)

It ends up setting currentTrack to “{“station”:“RINCON\_5CAAFDA596E801400”,“name”:null,“artist”:null,“album”:null,“trackNumber”:“1”,“status”:“playing”,“level”:”",“uri”:“x-sonos-htastream:RINCON\_5CAAFDA596E801400:spdif”,“trackUri”:“x-sonos-htastream:RINCON\_5CAAFDA596E801400:spdif”,“transportUri”:“x-sonos-htastream:RINCON\_5CAAFDA596E801400:spdif”,“enqueuedUri”:"",“metaData”:“RINCON\_5CAAFDA596E801400\<\u002fdc:title\>object.item.audioItem\<\u002fupnp:class\>x-sonos-htastream:RINCON\_5CAAFDA596E801400:spdif\<\u002fres\>\<\u002fitem\>\<\u002fDIDL-Lite\>”,“trackMetaData”:“x-sonos-htastream:RINCON\_5CAAFDA596E801400:spdif\<\u002fres\>\<\u002fr:audioInputIcon\>21\<\u002fr:streamInfo\> \<\u002fdc:title\>object.item\<\u002fupnp:class\>\<\u002fitem\>\<\u002fDIDL-Lite\>”}"

---

_[View the full topic](https://community.smartthings.com/t/deprecated-thread-visit-community-webcore-co-for-assistance-webcore-piston-design-help-ask-your-fellow-members-for-assistance/86345)._
