Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with:

Javascript Object Notation (JSON) Is What I Meant

By Ben Nadel on

I have been of late learning about AJAX and its integration with a ColdFusion application. As I started to understand the whole Xml Http Connection object and methodology I started to develop a form of dynamic Javascript code that would be passed back from the ColdFusion server and then evaluated by the web browser at the end of the AJAX call. It turns out, not suprisingly, that that already exists. It's called JSON or Javascript Object Notation. Furthermore, JSON looks very in depth in a conversion area where I only began to scratch the surface. Very cool stuff. So now, I get to look into JSON and see how it can be incorporated into my ColdFusion application framework. From what I have read so far, it seems they have conversion scripts for most scripting languages. Even if they don't I can always convert something from ASP or PHP to ColdFusion.



Reader Comments

@John,

Right, but what does that mean? JSON is just a data formatting standard (like XML). What are you trying to do with it in JRUN?

Reply to this Comment

Ben,

I am trying to send json object as a response through webservice deployed in JRUN server, to a request raised from aspx file. But it failed. If we try sending a String as response it works well.

Thanks

Reply to this Comment

@John,

I am not too familiar with the .NET framework or ASPX. I can tell you that when I want to return JSON from a ColdFusion application, I just use this:

<cfcontent
type="application/json"
content="#toBinary( toBase64( myJSONString ) )#"
/>

My JSON values are always strings - I am not sure what difference you mean between JSON and "String" as I typically view these as one and the same in ColdFusion. I think you might need to talk to someone who knows more about .NET specifically.

Reply to this Comment

@Ben,

Thanks for your reply.. We are currently returning the json object as string too.

Thank you so much for your help.

Appreciate it :)

Reply to this Comment

Post A Comment

You — Get Out Of My Dreams, Get Into My Comments
Live in the Now
Oops!
Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.