Actually, starting with 9.2.5, there is the ability to return JSON for a specific REST API resource: /api/query
You can add an additional parameter called “output” with a value of “json” such as:
/api/query?output=json&relevance=number%20of%20bes%20computers