2017 © Pedro Peláez
 

library json

JSON encoder with RAW support

image

swaggest/json

JSON encoder with RAW support

  • Thursday, November 23, 2017
  • by vearutop
  • Repository
  • 0 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

swaggest/json

JSON encoder with RAW support, (*1)

Build Status Scrutinizer Code Quality Code Climate, (*2)

Installation

composer require swaggest/json

Usage

$data = array(
    'val' => 'hello!',
    'callback' => new \Swaggest\Json\RawJson('function(){alert("hello!")}')
);

$json = (string)(new \Swaggest\Json\Json($data));
$this->assertSame('{"val":"hello!","callback":function(){alert(\"hello!\")}}', $json);

The Versions

23/11 2017

dev-master

9999999-dev

JSON encoder with RAW support

  Sources   Download

MIT

The Development Requires

23/11 2017

v1.0.0

1.0.0.0

JSON encoder with RAW support

  Sources   Download

MIT

The Development Requires