2017 © Pedro Peláez
 

library json

JSON helper library

image

codedgr/json

JSON helper library

  • Saturday, May 26, 2018
  • by codedgr
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

JSON Helper Library

This library throws an exception every time a json encode/decode action fails., (*1)

Install

Using Composer, (*2)

"require": {
    "codedgr/json": "~1.0"
}

Usage

Define an array, (*3)

$array = [
    'first-element' => 'this value',
    'second-element' => [0,1,2,3,4],
];

Then use the encode and decode functions surrounded with try/catch, (*4)

try{
    $encodedJSON = JSON::encode($array);
    $object = JSON::decode($encodedJSON);
}catch (JSONException $e){
    echo $e->getMessage();
}

Requirements

  • PHP 7.1 or above

The Versions

26/05 2018

dev-master

9999999-dev https://github.com/codedgr/JSON

JSON helper library

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

json

26/05 2018

1.0.1

1.0.1.0 https://github.com/codedgr/JSON

JSON helper library

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

json

26/05 2018

1.0

1.0.0.0 https://github.com/codedgr/JSON

JSON helper library

  Sources   Download

The Requires

  • php >=7.1.0

 

The Development Requires

json