Add notice to use json module in readme, due to the merged PR #584

This commit is contained in:
zeroday 2015-08-02 23:58:37 +08:00
parent c19596cae8
commit 9e6c62aa4d
1 changed files with 3 additions and 1 deletions

View File

@ -485,8 +485,10 @@ cc:post(coap.NON, "coap://192.168.18.100:5683/", "Hello")
``` ```
####cjson ####cjson
```lua ```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 -- Translate Lua value to/from JSON
-- text = cjson.encode(value) -- text = cjson.encode(value)
-- value = cjson.decode(text) -- value = cjson.decode(text)