PHPackages                             apsxj/json - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. apsxj/json

ActiveLibrary[API Development](/categories/api)

apsxj/json
==========

JSON 1.0 Library for Web APIs

v0.1.1(5y ago)010MITPHP

Since May 9Pushed 2y ago3 watchersCompare

[ Source](https://github.com/apsxj/json)[ Packagist](https://packagist.org/packages/apsxj/json)[ RSS](/packages/apsxj-json/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (5)Used By (0)

json
====

[](#json)

*JSON 1.0 Library for Web APIs*

This library was designed using the [JSON:API v1.0 STABLE](https://jsonapi.org/) specification.

### Getting Started

[](#getting-started)

1. Add the following to your `composer.json` file:

```
  "require": {
    "apsxj/json": "dev-main"
  },
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/apsxj/json.git"
    }
  ]
```

2. Run `composer install`
3. Before calling any of the methods, require the vendor autoloader

```
// For example, from the root directory...
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php');
```

4. To create a `Response` object and render it:

```
