|
2 | 2 |
|
3 | 3 | ## v1.1.0 (2017-06-28) ##
|
4 | 4 |
|
5 |
| - * Empty objects and objects that don't implement `Traversable` are now always |
6 |
| - encoded as JSON objects (for `json_encode()` compatibility). |
7 |
| - * Associative array testing now returns faster and more memory efficiently |
8 |
| - * JSON encoding errors now contain the error constant |
9 |
| - * The visibility for `write()` method in `StreamJsonEncoder` and |
10 |
| - `BufferJsonEncoder` has been changed to protected (as originally intended) |
11 |
| - * A protected method `getValueStack()` has been added to `AbstractJsonEncoder` |
12 |
| - that returns current unresolved value stack (for special write method |
| 5 | + * For `json_encode()` compatibility, all objects are encoded as JSON objects |
| 6 | + unless they implement `Traversable` and either return `0` as the first key or |
| 7 | + return no values at all. |
| 8 | + * Testing for associative arrays is now more memory efficient and fails faster. |
| 9 | + * JSON encoding errors now contain the error constant. |
| 10 | + * The visibility for `StreamJsonEncoder::write()` and `BufferJsonEncoder::write()` |
| 11 | + has been changed to protected (as was originally intended). |
| 12 | + * A new protected method `AbstractJsonEncoder::getValueStack()` has been added |
| 13 | + that returns the current unresolved value stack (for special write method |
13 | 14 | implementations).
|
14 |
| - * An overridable protected method `resolveValue()` has been added to |
15 |
| - `AbstractJsonEncoder` which is used to resolve closures and objects |
16 |
| - implementing `JsonSerializable`. |
| 15 | + * An overridable protected method `AbstractJsonEncoder::resolveValue()` has |
| 16 | + been added which is used to resolve objects (i.e. resolving the value of |
| 17 | + closures and objects implementing `JsonSerializable`). |
17 | 18 |
|
18 | 19 | ## v1.0.0 (2017-02-26) ##
|
19 | 20 |
|
|
0 commit comments