JSON Decode

Passes the given text through json_decode(), returning the value (if valid) as a StdClass object.

ProcessWire JSON Decode Textformatter

Passes the given text through json_decode(), returning the value (if valid) as a stdClass object.

This is particularly useful if you are storing JSON from an API in a Page field and want to access it in a similar way to normal Page objects e.g.

// The data in the page's api_data field
// {"fieldName": "value"}
echo $page->api_data->fieldName; // value

In most cases this Textformatter will be used on Textarea fields.

More modules by NB Communication

  • Pageimage Srcset

    Provides configurable srcset and sizes properties/methods for Pageimage.
  • Pageimage Source

    Extends Pageimage with a srcset property/method plus additional rendering options.
  • WireMail Mailgun API

    Extends WireMail to use the Mailgun API for sending emails.
  • Draw Map Features

    Stores a GeoJSON FeatureCollection drawn on a MapLibre map.
  • Instagram Media Display

    Instagram Media Display, in combination with a Meta app, allows you to get an Instagram user's profile, images, videos, and albums for displaying on your website.
  • Markup Content Security Policy

    Configure and implement a Content Security Policy for all front-end HTML pages.
  • Video markup for YouTube/Vimeo

    Render oEmbed data from YouTube/Vimeo URLs.
  • JSON Decode

    Passes the given text through json_decode(), returning the value (if valid) as a StdClass object.
  • ProCache Sync

    Synchronises ProCache clearing across a multi-instance environment.

All modules by NB Communication

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