2017 © Pedro Peláez
 

library goma-json-lib

Goma JSON Lib provides Exception handling for JSON encode and decode. It has a workaround for non-utf8 values.

image

goma/goma-json-lib

Goma JSON Lib provides Exception handling for JSON encode and decode. It has a workaround for non-utf8 values.

  • Friday, October 20, 2017
  • by daniel.gruber
  • Repository
  • 1 Watchers
  • 0 Stars
  • 470 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

Goma JSON Lib

Goma JSON Lib provides Exception handling for JSON encode and decode. It has a workaround for non-utf8 values., (*1)

Methods

  • JSON::encode( mixed $value [[, int $options = 0 [, int $depth = 512 ]], bool $throwNonUtf8 = false]) - encodes data. If utf8 error is thrown, it tries a workaround. For every other kind of error JSONException is thrown.
  • JSON::decode(string $json [, bool $assoc = false [, int $depth = 512 [, int $options = 0 ]]]) - decodes an json string. Throws JSONException in case of a problem.

JSONException

The code of the JSONException is the same as json_last_error(). Message is json_last_error_msg()., (*2)

The Versions

20/10 2017

dev-master

9999999-dev

Goma JSON Lib provides Exception handling for JSON encode and decode. It has a workaround for non-utf8 values.

  Sources   Download

LGPL-3.0

The Requires

 

by Goma Team