Is "0.0" an invalid number?


#1

I’m getting errors from my Particle webhooks: “A valid number is required.”
I suspect it may be from sending a variable value that is 0.0, however that would be strange since it is a valid JSON payload. Is this the case?


#2

Greetings, 0.0 is a valid float number as you can see in the image below:

imagen

From your error trace, I suspect that you are not building a JSON that fits theUbidots API, can you share your payload for further analysis?

All the best