Skip to content

encode_sparse_array

json.encode_sparse_array()

json.stringify() classifies a Lua table into one of three kinds when encoding a JSON array. This is determined by the number of values missing from the Lua array as follows: