local json = require'cjson'
It's here.
NOTE: Added option encode_empty_table_as_array, enabled by default, to encode empty tables as [] instead of {}.
encode_empty_table_as_array
[]
{}