mpx / lua-cjson

Lua CJSON is a fast JSON encoding/parsing module for Lua
https://kyne.au/~mark/software/lua-cjson.php
MIT License
924 stars 474 forks source link

Examples in manual are confusing #52

Open bdheeman opened 6 years ago

bdheeman commented 6 years ago

I'm not expert and, or seasoned Lua programmer or user, but I find that you defined cjson2 two times in separate examples or statements in your manual.adoc as:

local cjson2 = cjson.new()

which has not been used anywhere or any further in this document and, or examples :-(

The poor and, or overly expressive documentation and bad examples are major reasons for the good code and, or nice open source software like this and Lua going ashtray day by day.