If the value is NULL, then the json marshaller throws an exception