PHPackages                             pointybeard/helpers-functions-json - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. pointybeard/helpers-functions-json

ActiveLibrary

pointybeard/helpers-functions-json
==================================

A collection of functions for working with JSON files and strings

1.0.0(6y ago)0858↑900%1MITPHPPHP &gt;=7.2

Since Jun 8Pushed 6y agoCompare

[ Source](https://github.com/pointybeard/helpers-functions-json)[ Packagist](https://packagist.org/packages/pointybeard/helpers-functions-json)[ Docs](https://github.com/pointybeard/helpers-functions-json)[ RSS](/packages/pointybeard-helpers-functions-json/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

PHP Helpers: JSON Functions
===========================

[](#php-helpers-json-functions)

- Version: v1.0.0
- Date: June 08 2019
- [Release notes](https://github.com/pointybeard/helpers-functions-json/blob/master/CHANGELOG.md)
- [GitHub repository](https://github.com/pointybeard/helpers-functions-json)

A collection of functions for working with JSON files and strings

Installation
------------

[](#installation)

This library is installed via [Composer](http://getcomposer.org/). To install, use `composer require pointybeard/helpers-functions-json` or add `"pointybeard/helpers-functions-json": "~1.0.0"` to your `composer.json` file.

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

### Requirements

[](#requirements)

This library makes use of the [PHP Helpers: Flags Functions](https://github.com/pointybeard/helpers-functions-falgs) (`pointybeard/helpers-functions-flags`). It is installed automatically via composer.

To include all the [PHP Helpers](https://github.com/pointybeard/helpers) packages on your project, use `composer require pointybeard/helpers`.

Usage
-----

[](#usage)

This library is a collection convenience function for common tasks relating to working with JSON strings and documents. They are included by the vendor autoloader automatically. The functions have a namespace of `pointybeard\Helpers\Functions\Json`

The following functions are provided:

- `json_validate`
- `json_validate_file`
- `json_decode_file`

Example usage:

```
