Fixed the JSON EOF error returned on an emply slice