PHPackages                             steein/json\_data - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. steein/json\_data

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

steein/json\_data
=================

This library is an object-oriented interface that works with data in JSON format

06PHP

Since Jan 22Pushed 9y agoCompare

[ Source](https://github.com/SteeinSource/json-data)[ Packagist](https://packagist.org/packages/steein/json_data)[ RSS](/packages/steein-json-data/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

SteeinJSON Data
---------------

[](#steeinjson-data)

This library is an object-oriented interface that works with data in JSON format

### Usage

[](#usage)

#### Example 1

[](#example-1)

```
use SteeinJSON\JSON;

$myJson = "
{
  "steein":
  {
    "item":"value"
  }
}
";
$object = new JSON($myJson);
```

#### Example 2

[](#example-2)

```
use SteeinJSON\JSON;

$object = new JSON();
$object->text->item = 'value';
$object->text->item->one = 'value2';

//By default, simply output through "echo"
echo $object;

//At the request is allowed to maintain in a JSON file
$file = __DIR__.'/json/item.json';
$object->save($file);
```

### Working with existing objects

[](#working-with-existing-objects)

If you would like to work with an existing object, rather than parsing a string, pass this object as the third constructor argument:

```
use SteeinJSON\JSON;

$object = new JSON(null, null, $customJSON);

///Validating Against a Schema
$object->check($customSchema, [$extraSchemaURI => $extraSchemaData]);
```

#### Author: Shamsudin Serderov

[](#author-shamsudin-serderov)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/25b3e90822a52d3d64e79e88c911e20e16f8d08ceb759f52ad75884a85a8b302?d=identicon)[Steein](/maintainers/Steein)

---

Tags

jsonjson-formatjson-objectsoriented-interfacephp-7

### Embed Badge

![Health badge](/badges/steein-json-data/health.svg)

```
[![Health](https://phpackages.com/badges/steein-json-data/health.svg)](https://phpackages.com/packages/steein-json-data)
```

###  Alternatives

[magiccart/lookbook

Pin product to banner easy.

1319.9k](/packages/magiccart-lookbook)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
