Template Sensor JSON Possibly

So I was in the middle of making template sensor to pull the ‘Areas Of Interest’ attribute from the geocoded location sensor made by the iOS app… when the value was populated it was coming up in brackets and quotes in the template editor

['Value Looked Like This']

… my wife is now home so that field is now coming up as: N/A so I can’t exactly test it any further at the moment. I guess it looks like JSON, I was hoping maybe someone with the app/or familiar with parsing that could just give me a quick pointer on how to get that to populate that without the quotes or brackets. All the examples I see refer to JSON using rest sensors/command line sensors, etc…

Maybe I just need to send the wife back out… :grimacing:

I don’t use the app, but my guess is the attribute is a list of strings. So if your template is something like this:

{{ state_attr('x.y', 'areas_of_interest') }}

then you can do something like this instead:

{{ state_attr('x.y', 'areas_of_interest')|join(', ') }}

That would turn:

['Value Looked Like This']

into:

Value Looked Like This

And if there is more than one area of interest, say:

['AOI 1', 'AOI 2', 'AOI 3']

that would become:

AOI 1, AOI 2, AOI 3