eblount / tidyjson

Clean up JSON strings in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TidyJSON

A simple class for cleaning up poorly formatted JSON strings. No validation is performed; if you pass in bogus data, you will get bogus output.

Usage: <?php

require 'tidyjson.php';

$json = '{"foo":"bar","baz":[1,2,5]}';
$tidy = TidyJSON::tidy($json);

?>

About

Clean up JSON strings in PHP


Languages

Language:PHP 100.0%