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

René Kijewski notifications at github.com
Wed Jan 9 17:59:31 CET 2019


Kijewski commented on this pull request.



> +
+/**
+ * @brief The internal state of the input stream.
+ */
+typedef enum {
+    JSON_READ_STATE_SOMEWHERE,   /**< No other state applies. */
+    JSON_READ_STATE_IN_OBJECT,   /**< The last consumed character was `{`. */
+    JSON_READ_STATE_IN_ARRAY,    /**< The last consumed character was `[`. */
+    JSON_READ_STATE_IN_SEQUENCE, /**< The stream is inside a sequence (a key, a string or a number). */
+} json_read_state_t;
+
+/**
+ * @brief   The cookie with all the information needed to deserialize JSON data.
+ *
+ * @see json_read_init()
+ * @see @ref container_of

smh

-- 
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_r246450217
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190109/25dd68b1/attachment.html>


More information about the notifications mailing list