Re: [Proto-Scripty] Re: Parse html

2011-04-04 Thread kstubs
I write my own JSON on the backend.  I use JSON.net if I need a JSON writer 
for code in C#.  I just developed an object in PHP that sends JSON down the 
pipe to a requesting page.  At first I was using the built-in json_encode 
function from a SimpleXmlElement but eventually I wrote my own as I did not 
much care for how that looked.  PHP has great support for objects to JSON, 

Karl..

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



Re: [Proto-Scripty] Re: Parse html

2011-04-04 Thread Walter Lee Davis


On Apr 4, 2011, at 5:15 AM, kstubs wrote:

Loving JSON on the client-side, but wish I was more proficient in  
hand coding and code-coding it... but worth it once you are down on  
the client with it!


What server back-end are you using to generate your JSON? PHP and Ruby/ 
Rails both have fairly impressive conversion built-in. (I'm sure that  
other back-ends do as well, just never used them.) You start with a  
native data structure (array, hash, what-have you) and call the  
respective conversion function on that structure. Blammo, instant JSON  
ready for service.


Walter

--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.