thetribe/json

json_encode/json_decode wrapper

Installs: 4 458

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 1

pkg:composer/thetribe/json

v0.1.1 2017-06-07 12:25 UTC

This package is not auto-updated.

Last update: 2025-10-12 09:02:09 UTC


README

thetribe/json is a small wrapper around the json_* fonctions that does two things:

  • Convert errors to exceptions
  • Normalize parameters

Install

Install thetribe/json using Composer.

composer require thetribe/json

Usage

Decoding

<?php

use function TheTribe\JSON\decode;

$value = decode($json, $options, $depth);

Encoding

<?php

use function TheTribe\JSON\encode;

$json = encode($value, $options, $depth);