the native api: {JENKINS_URL}/queue/api/json?pretty=true would return the contents as bellow, be attention to the red box:

but use the function server.getQueue() would not return this contents, as bellow showed:

additionally, filter by job name can be also support in upcoming version? similar with this:
json?tree=jobs[name]