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: 2024-12-19 06:40:33 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