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 yet rated by the usersTotal: 447 All time: 6,193 This week: 289Up
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: 3404133 in Italy Italy
Week rank: 654 Up27 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:0
All time:6,193
This week:289Up