greeny/json-parser

A JSON parser that doesn't use native json_decode function.

dev-master 2019-09-18 19:06 UTC

This package is auto-updated.

Last update: 2022-11-19 02:28:00 UTC


README

A simple JSON parser, that doesn't use native json_decode function.

Installation

composer require greeny/json-parser

Usage

<?php
$json = '[1,2,3]';
var_dump(greeny\Json\Parser::parse($json)); // array(1, 2, 3)

Running tests

vendor/bin/tester -c tests/php.ini tests