Encoder empty slice of strings to JSON object.