convert now returns two values
Error if there is an unexpected field used in the json data