Result of encoding an empty array is syntactically incorrect:
1> zj:encode([]). "\"\""
The result should be: "[]"