torkell: (Default)
[personal profile] torkell
Today's post will have to wait until tomorrow later today: it's taking me longer than I was expecting to knock up a python script as part of the post.

Python scripts should be nice and quick to create. Unfortuantly this does not seem to hold when you add XML into the equation.

Date: 2008-11-17 12:53 am (UTC)
From: [identity profile] pteppic.livejournal.com
JSON's key advantages are it's simple and light. It's noting more really than an associative array passed as a string. Since your server normally isn't running Javascript, passing it a JSON Object is harmless when common sense is applied. Security at ther client *can* be a concern, yes you can use eval(), but best practice says to use the JSON parser, which throws a hissy fit on your behalf if you're doing something you shouldn't be.

It's also got fuck-all overhead, so if you're passing between client and server, you're not sending whopping chunks of data over the pipe.

It's a tool like any other. It has it's advantgaes and disavantages.

January 2026

S M T W T F S
     123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 9th, 2026 05:10 am
Powered by Dreamwidth Studios