PHP Classes

bad JSON?

Recommend this page to a friend!

      MySQL to JSON  >  All threads  >  bad JSON?  >  (Un) Subscribe thread alerts  
Subject:bad JSON?
Summary:the results of this class i dont think is JSON compliant
Messages:2
Author:stevie r
Date:2008-08-17 00:19:51
Update:2009-12-12 17:47:52
 

  1. bad JSON?   Reply   Report abuse  
Picture of stevie r stevie r - 2008-08-17 00:19:51
prototype.js and dojo doesnt like it anyway.

I got this code working with dojo and prototype by eliminating all the /n breaks and /t tabs in the output and eliminating the trailing ;

NOTE: non-debug mode prototype 1.5 does not return an evalJSON error when you give it a bun JSON string - so i hope this saves someone some time...

  2. Re: bad JSON?   Reply   Report abuse  
Picture of Adnan Siddiqi Adnan Siddiqi - 2009-12-12 17:47:52 - In reply to message 1 from stevie r
actually the class was written by keeping in mind that it would be used for AJAX purpose only hence i made it accordingly. Thanks for pointing out the issue.

/A