Well i created a working rest sensor, it updates everything normal when i press reload rest entities.
So the thing is, when i go in developer tools
and select Update entity service and select the entity whats connected to my code it does updated but throws an error that json can’t be formatted.
Thanks for the reply, the json format is correct and does work.
However i found out that if i change the code in my yaml and run the update entity service it only runs the old data, and if the old data did not contain any data ofcourse it doesnt format the json.
I just wanted to test what happens if it doesn’t find the data… but i found out that it doesnt work like that,
so every time i press reload entities it saves my corrected url (rest configuration) and when i run the update entity service it just updates and when new data its available it will update when i press again…
So kinda my fault of thinking it would work straight away but no, so issue solved.