Skip to main content
Skip table of contents

JavaScript API available in Converters

This will grow over time. PocketQuery for Confluence Cloud is still in an early stage and will be getting more features as time goes on. Right now, you might find that not all functions that PocketQuery for Confluence Server offers are available yet.

“json” parameter

Converters require you to implement a function named convert. This function receives the result of your Query that it is designed to as JSON. This will be passed as the first parameter to the convert function.

JS
function convert(json) {
  const parsed = JSON.parse(json); // parse the query result json
  ...
  return something; // operate on the parsed data and return your converted result
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.