PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Scott Arciszewski   iaso PHP JSON Parser Library   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: iaso PHP JSON Parser Library
Parse JSON strings immune to hash-DoS attacks
Author: By
Last change:
Date: 2 years ago
Size: 1,374 bytes
 

Contents

Class file image Download

Iaso

Build Status Latest Stable Version Latest Unstable Version License

Iaso is a powerful JSON toolkit for PHP 7+, intended for any organization that builds or consumes JSON-based APIs.

Iaso was developed by Paragon Initiative Enterprises to allow projects to build APIs without being vulnerable to hash-collision denial of service attacks from PHP's JSON functions.

Features

  • HDoS resistant data structure (`ResultSet`)
  • Basic JSON parser (returns `ResultSet` objects) * `Assoc` is a JSON object * `Ordered` is a JSON array

Roadmap

  • Contract-enforced JSON parser * Allows strict types, data limits * Throws an exception if any violations are found

Usage Examples

Simple JSON Parsing

use ParagonIE\Iaso\JSON;
use ParagonIE\Iaso\ResultSet;

$data = JSON::parse($string);
var_dump($data instanceof ResultSet); /bool(true)/