When using the /rest/api/3/search/jql endpoint to fetch data from a "number" type custom field, issues with a value of 0 for that field are returned as null. Other values come through as expected.
When using the /rest/api/2/issue/ endpoint for individual issues, the value comes through correctly as a 0.