Hi,
I'm developing Software for the nRF52840. I'm using NCS version 2.2.0 and Zephyr OS build v3.2.99-ncs1.
I try to encode a JSON message that will be send via MQTT.
I managed to encode, objects, strings and other primitives,
But now I'm blocked trying to encode a double array of floats.
The JSON message I'm trying to encode would be like this:
{"observations":[[3.0, 0.20],[5.0, 0.30],[4.5, 0.25]]}
I have tried to follow the JSON_OBJ_DESCR_ARRAY_ARRAY example, like in line 390 in "zephyr/data/json.h" but I think the example shown is for an array of an array of objects (not floats), and I could not manage to get the desired result, although I have tried with several options.
Could you please give me some advice? An example of JSON_OBJ_DESCR_ARRAY_ARRAY, for floats would be appreciated.
Thanks and regards,
Jordi.