Skip to content

Innmind/Json

Repository files navigation

Json

Build Status codecov Type Coverage

Type safe json encode/decoder, the goal is to not leave errors unchecked.

Installation

composer require innmind/json

Usage

use Innmind\Json\Json;

Json::encode(['foo' => 'bar']); // {"foo":"bar"}
Json::decode('{"foo":"bar"}'); // ['foo' => 'bar']
Json::decode('{]'); // will throw an exception (instead of returning false)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages