Fixed broken JSON being returned in translate.

Replacing empty values at start and end of list with null.

Fixes #35