weew/json-encoder

JSON encoding and decoding library.

v1.1.0 2017-05-24 14:52 UTC

This package is not auto-updated.

Last update: 2024-11-23 20:53:23 UTC


README

Build Status Code Quality Test Coverage Version Licence

Table of contents

Installation

composer require weew/json-encoder

Introduction

This is a very simple wrapper around the json_encode and json_decode functions that additionally supports various data types and provides catchable encoding & decoding exceptions in case of a JSON error.

Usage

$encoder = new JsonEncoder();
$encoder->encode(/** data **/);
$encoder->decode(/** json **/);