[riot-notifications] [RIOT-OS/RIOT] Adopt PR #2189: a JSON en/decoder (#8312)

Martine Lenders notifications at github.com
Wed Jan 9 16:28:48 CET 2019


miri64 commented on this pull request.



> + * @param[in] cookie            The cookie, initialized with json_write_init().
+ *
+ * @returns @ref JSON_OKAY on success.
+ * @returns @ref JSON_INVALID_DATA if the stream is inside an invalid state.
+ * @returns @ref JSON_PREMATURELY_ENDED if the data could not be written.
+ */
+json_result_t json_write_array_next(json_write_cookie_t *cookie);
+
+/**
+ * @brief   Write a single integer value.
+ *
+ * JSON does not differentiate between integers and floating point numbers.
+ *
+ * @warning JSON is an unframed format. If the data to deliver consists of
+ *          a single number, then there is a fair chance that it will not be
+ *          processed correctly by the decoder side.

Yepp.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/8312#discussion_r246424709
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190109/81ce5e5d/attachment.html>


More information about the notifications mailing list