Skip to content

Commit 269be53

Browse files
2.3.1
1 parent a8dcadd commit 269be53

File tree

2 files changed

+43
-119
lines changed

2 files changed

+43
-119
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ Services_JSON::decode('1,2,3',Services_JSON::GET_ARRAY | Services_JSON::DECODE_F
7676
Services_JSON::decode('"k1":"v1", k2:2',Services_JSON::GET_ARRAY | Services_JSON::DECODE_FIX_ROOT) // returns [ 'k1' => 'v1','k2'=>2]
7777
```
7878

79+
> Note: DECODE_FIX_ROOT flag detects if the near character is ":" or ",". If the closest character is ":", then it returns
80+
> an object, otherwise it returns a list. If there is none, then it returns a list.
81+
7982

8083

8184
### Encode
@@ -92,6 +95,9 @@ var_dump(Services_JSON::encode($obj)); // encode an object
9295

9396
## Changelog
9497

98+
* 2.3.1
99+
* deleted unused code
100+
* fixed comments.
95101
* 2.3
96102
* Fixed a typo with a comment.
97103
* added phpunit. The entire code is tested but special codification.

0 commit comments

Comments
 (0)