Code Monkey home page Code Monkey logo

jpophp's Introduction

JPOPHP (Json Parser Object PHP)

Json Parser Object PHP

Tiny Library for parse JSON.

JPOPHP (PHPJsonParser) can encode and decode data in JSON format.

We provides a pure PHP solution to take a value and generates a string that represents that value in JSON format.

The package can also take a JSON encoded string and decodes it to retrieve the original data value.

JsonParser.php File Size JsonParser.min.php File Size JsonParser.php Validation Code

JPOPHP Features

  • Small and light library
  • Hand-coded scanner
  • Analyze and found Errors
  • Unicode Support
  • No dependencies (only suitable version of the PHP)
  • Written and run on PHP 7.2.6, PHP 7.3.4

Type of supported values

  • Integer
  • Float
  • Boolean (true , false)
  • Null
  • String
  • Char (Now this is same as a string)
  • Sub Array
  • Sub Object

JPOPHP TODO

  • Improve speed and performance (Speed does not reach C Language!)

Usage

All public functions are accessible through the $json variable.

  • array $json->decode(string);
  • string $json->encode(array);

Samples

To view the full details, run the Example.php file.

JSON Grammar

You can check the JSONGrammar.txt file to view the JSON standard grammar.

JPO-PHP Performance

Competition between json_encode(...) and $json->encode(...)

The basic PHP functions are written in C itself.

Do not expect to reach it quickly.

However, there is always way for improvement.

JPO PHP History

  • Version 1.0 (first) : 2018-06-26 - 2018-06-26

  • Version 2.1 : 2018-06-27 - 2019-03-13

  • Version 2.2 : 2019-03-25 - 2019-04-03

  • Version 2.2.1 : 2019-04-04

License

JsonParser (PHP JSON Parser) is licensed under the GNU General Public License.

jpophp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jpophp's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.