Fixed bad encoding of empty arrays.
Merge pull request #98 from F21/fix_bad_json_encoding

Fixed bad encoding of empty arrays.