nuxed / json
Nuxed Json
Installs: 662
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Language:Hack
Requires
- hhvm: ~4.83.1 || ~4.84.0
- hhvm/type-assert: ^4.1.2
Requires (Dev)
- facebook/difflib: ^1.1.1
- facebook/fbexpect: ^2.7.7
- facebook/hh-clilib: ^2.5.2
- hhvm/hacktest: ^2.0
- hhvm/hhast: ^4.82.2
- hhvm/hhvm-autoload: ^3.1.6
- hhvm/hsl: ^4.41
- hhvm/type-assert: ^4.1.2
This package is auto-updated.
Last update: 2024-11-23 00:56:03 UTC
README
Nuxed Json
The Nuxed Json component provides functions that help you encode, and decode json structures safely.
Installation
This package can be installed with Composer.
$ composer require nuxed/json
Example
use namespace Nuxed\Json; use namespace Facebook\TypeSpec; <<__EntryPoint>> async function main(): Awaitable<void> { $data = Json\encode(dict[ 'foo' => 5, 'bar' => 6 ]); // using reified generics. $decoded = Json\typed<dict<string, int>>($data); // using type spec. $decoded = Json\spec($data, TypeSpec\dict( TypeSpec\string(), TypeSpec\int(); )); }
Security
For information on reporting security vulnerabilities in Nuxed, see SECURITY.md.
License
Nuxed is open-sourced software licensed under the MIT-licensed.