Skip to content

Commit 470badb

Browse files
2.0
1 parent ede74bc commit 470badb

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

README.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,17 @@ PHP implementation of json_encode/decode for PHP 7.2 and higher. This library w
99
[![php](https://img.shields.io/badge/php-8.x-green.svg)]()
1010
[![CocoaPods](https://img.shields.io/badge/docs-70%25-yellow.svg)]()
1111

12-
JSON (JavaScript Object Notation, http://json.org) is a lightweight data-interchange format.
13-
It is easy for humans to read and write. It is easy for machines to parse and generate.
14-
It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999.
15-
This feature can also be found in Python. JSON is a text format that is completely language independent
16-
but uses conventions that are familiar to programmers of the C-family of languages, including
17-
C, C++, C#, Java, JavaScript, Perl, TCL, and many others. These properties make JSON an ideal
18-
data-interchange language.
19-
20-
This package provides a simple encoder and decoder for JSON notation. It is intended for use
21-
with client-side Javascript applications that make use of HTTPRequest to perform server
22-
communication functions - data can be encoded into JSON notation for use in a client-side
23-
javascript, or decoded from incoming Javascript requests. JSON format is native to Javascript,
24-
and can be directly eval() with no further parsing overhead.
12+
This package provides a simple encoder and decoder for JSON notation. It is intended for use with client-side Javascript
13+
applications that make use of HTTPRequest to perform server communication functions - data can be encoded into JSON
14+
notation for use in a client-side javascript, or decoded from incoming Javascript requests. JSON format is native to
15+
Javascript, and can be directly eval() with no further parsing overhead.
2516

2617
## So, what is the goal with this version?
2718

28-
While this version doesn't have a better performance than **json_encode()** and **json_decode()** available as extension,
29-
but it has the next features:
19+
While this version doesn't have a better performance than **json_encode()** and **json_decode()** available as
20+
extension, but it has the next features:
3021

3122
- [x] it doesn't require an extension. If you can't install ext-json, then you can use this version.
32-
3323
- [x] **it works with JSON with unquoted keys** (for example JavaScript notation)
3424
- [x] It is a simple .php file with no dependency.
3525

@@ -95,6 +85,7 @@ var_dump(Services_JSON::encode($obj)); // encode an object
9585

9686
* 2.0
9787
* Now the library is static, so you can call the methods without creating an instance.
88+
* If you want to work with the non-static library, then install 1.1
9889
* 1.1
9990
* It works with PHP 7.2 and higher (including PHP 8.0 and 8.1)
10091
* It doesn't require PECL to work.

0 commit comments

Comments
 (0)