First version of yiisoft/json standalone package was released.
The package provides methods to encode and decode JSON.
- It always throws
\JsonExceptioninstead of returning false on error.
- It has sensible defaults, so you don't have to specify flags all the time.
- It has handy method to encode for HTML safely.
- It handles
Usage example is available in readme.