Download the PHP package codekandis/json-codec without Composer
On this page you can find all versions of the php package codekandis/json-codec. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download codekandis/json-codec
More information about codekandis/json-codec
Files in codekandis/json-codec
Download codekandis/json-codec
More information about codekandis/json-codec
Files in codekandis/json-codec
Vendor codekandis
Package json-codec
Short Description This library provides a codec to encode into and decode from JSON in an object oriented way.
License MIT
Package json-codec
Short Description This library provides a codec to encode into and decode from JSON in an object oriented way.
License MIT
Please rate this library. Is it a good library?
Informations about the package json-codec
codekandis/json-codec
With the JSON codec you will be able to encode into and decode from JSON data in an object oriented way. It wraps PHP's functions json_encode()
and json_decode()
.
Index
- Installation
- How to use
- Encoding values
- Decoding values
- Differences to PHP's JSON functions
Installation
Install the latest version with
How to use
Encoding values
The following example shows how to encode a value.
Decoding values
The following examples show how to decode a value.
Differences to PHP's JSON functions
json_decode()
accepts an additional argument $assoc
to specify if the value forced to be decoded into an associative array. This argument is omitted in the JsonDecoderOptions::OBJECT_TO_ARRAY
.
All versions of json-codec with dependencies
PHP Build Version
Package Version
The package codekandis/json-codec contains the following files
Loading the files please wait ....