Andy Jarrett // Code. Develop. Create.

Railo handles JSON natively

When jumping from programming language to language its easy to mix them up and usually you just get an error thrown so you move on accepting that a coffee comes before opening an IDE. Sometimes, albeit rarely, you learn something new about the language, though more and more with Railo the engine is prepared for my coding style pre-caffeine and simply doesn't throw wobbly . Today accident was using JSON notation in <cfscrip> to create a struct.

jsonNotation = {name1:"val 1",name2:"val 2"};writeDump( jsonNotation );

I don't know if CF9 can do it and though I don't have a use for it now it is still one to remember.

Anyone on Railo using this and if so what for?


I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee. Your support keeps this site running and the coffee brewing! ☕️