Adds method to several wire classes to output as JSON

Pages2JSON

Module for ProcessWire that adds capability to output pages as JSON

Changelog

Lisa Simpson (0.0.4)

  • Removed template tab and added section under Basic tab for template spesific JSON attribute output selection.
  • Crawler is now targeting Pages and WireArrays based on instance type, not className like it was previously. This should give more flexibility to developers around different types of objects that are derived from either of.
  • Added only public method it most likely ever will have: encode($value, $options = 0). Usage example: $modules('Pages2JSON')->encode($toJSON);
  • Added new hookable method: getFields($page). Gives capability to inject and manipulate runtime fields to be crawled. Useful especially if you need to inject field that dosen't exists, but you still need crawler to notice it.

Montgomery Burns (0.0.3)

  • Kind of forgot to release this, so this remains ghots release that never happen. And to be honest, no one really likes Mr. Burns anyways.

Homer Simpson (0.0.2)

  • Allows user define global data output in module options + individual data based on template.
  • Added forum user Manol's feature request regarding PageImage and PageFile fields.

Bart Simpson (0.0.1)

  • Initial release

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #515
    In the 515th issue of ProcessWire Weekly we’ll check out the latest core updates, new modules, and more. Read on!
    Weekly.pw / 23 March 2024
  • Invoices Site Profile
    The new invoices site profile is a free invoicing application developed in ProcessWire. It enables you to create invoices, record payments to them, email invoices to clients, print invoices, and more. This post covers all the details.
    Blog / 15 March 2024
  • Subscribe to weekly ProcessWire news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits