Extracting Key:value pairs from JSON and adding that as a state or attribute into a new sensor

I have set up a flow that calls an API to retrieve a JSON list holding a lot of key:value pairs. I want to create a sensor in home Assistant to store those values in, kinda like how the Google keep integration entity looks.
But i can’t get it formated correctly.
I have succeeded with everything except formating the list correctly. No matter what I try it gets forwarded as a massive string.
Any ideas?

how about showing us what you’ve tried, and what the json you’re working with looks like?

1 Like