json encoding float

the v2.7.0-5cb85570ca43 zephyr/ndk combination doesn’t work for things using the JSON_TOK_FLOAT type (vs the number type). this is because zephyr/lib/utils/json.c:float_ascii_encode() uses the value in the object token struct as a pointer when it’s the ‘raw’ floating point value.

i did the naive patch that only does float (not double) and abuses the current value copying behavior.

anyway, json.patchthe zephyr folks indicated that this shoud be raised first w/ nordic.

Related