From 9e6c62aa4df937c48515ef5bf4d7eaa41f73031a Mon Sep 17 00:00:00 2001 From: zeroday Date: Sun, 2 Aug 2015 23:58:37 +0800 Subject: [PATCH] Add notice to use json module in readme, due to the merged PR #584 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ad3105cc..a21378c4 100644 --- a/README.md +++ b/README.md @@ -485,8 +485,10 @@ cc:post(coap.NON, "coap://192.168.18.100:5683/", "Hello") ``` ####cjson - ```lua +-- Note that when cjson deal with large content, it may fails a memory allocation, and leaks a bit of memory. +-- so it's better to detect that and schedule a restart. +-- -- Translate Lua value to/from JSON -- text = cjson.encode(value) -- value = cjson.decode(text)