toJson fixed to respect arrays and object in Javascript

dldege - April 1, 2009 - 21:06
Project:JSON server
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Array and objects are encoded differently in JSON - see http://json.org.

This patch adds support for both. It might make sense to package JSON server with a more robust 3rd party JSON encode/decode.

AttachmentSize
tojson.patch1.38 KB
 
 

Drupal is a registered trademark of Dries Buytaert.