Skip to content

nbcommunication/TextformatterJsonDecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages