Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basemax/jpophp
JSON Parser Object PHP is a library for parsing the data in JSON format.
https://github.com/basemax/jpophp
json json-parser json-parsing json-parsing-library json-serialization lexer parser parsers php php-5 php-7 php-json-library php-json-parser php-library token token-authentication token-authetication token-authorization tokenizer tokens
Last synced: 4 months ago
JSON representation
JSON Parser Object PHP is a library for parsing the data in JSON format.
- Host: GitHub
- URL: https://github.com/basemax/jpophp
- Owner: BaseMax
- License: gpl-3.0
- Created: 2018-06-26T11:55:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T10:18:57.000Z (over 5 years ago)
- Last Synced: 2024-10-12T12:04:26.799Z (4 months ago)
- Topics: json, json-parser, json-parsing, json-parsing-library, json-serialization, lexer, parser, parsers, php, php-5, php-7, php-json-library, php-json-parser, php-library, token, token-authentication, token-authetication, token-authorization, tokenizer, tokens
- Language: PHP
- Homepage: https://www.phpclasses.org/package/11110-PHP-Encode-and-decode-data-in-JSON-format.html
- Size: 148 KB
- Stars: 26
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://img.shields.io/badge/Library%20Size-26.0%20KB-blue.svg)
![JsonParser.min.php File Size](https://img.shields.io/badge/Compressed%20Size-10.3%20KB-blue.svg)
![JsonParser.php Validation Code](https://img.shields.io/badge/Validation%20Code-No%20Error-green.svg)## 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
- [x] Integer
- [x] Float
- [x] Boolean (`true` , `false`)
- [x] Null
- [x] String
- [x] Char (Now this is same as a string)
- [x] Sub Array
- [x] Sub Object## JPOPHP TODO
- Improve speed and performance (Speed does not reach `C Language`!)
## UsageAll 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](https://github.com/BaseMax/JsonParser/blob/master/Example.php) file.
## JSON Grammar
You can check the **[JSONGrammar.txt](https://github.com/BaseMax/JsonParser/blob/master/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](https://github.com/BaseMax/JsonParser/blob/master/LICENSE).