PHP Classes

JSON Builder: Encode associative array as object in JSON format

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 447 This week: 1All time: 6,195 This week: 105Up
Version License PHP version Categories
json-builder 1.0Free for non-comm...5.3PHP 5, Data types


This package can encode associative array as object in JSON format.

It can traverse an associative array and process its entries to be encoded in JSON.

It supports encoding specific entries as function references.

Picture of Aldo Stracquadanio
Name: Aldo Stracquadanio <contact>
Classes: 1 package by
Country: Italy Italy
Age: ???
All time rank: 3405133 in Italy Italy
Week rank: 107 Up4 in Italy Italy Up

  Files folder image Files  
File Role Description
Files folder imageTests (2 files)
Plain text file JSONBuilder.php Class The main builder class
Plain text file JSONFunction.php Class Encapsulate a JS Function for JSON arrays

  Files folder image Files  /  Tests  
File Role Description
  Accessible without login Plain text file JSONBuilderTest.php Test Unit tests for the JSONBuilder class
  Accessible without login Plain text file JSONFunctionTest.php Test Unit tests for the JSONFunction class

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:6,195
This week:105Up