background preloader


Facebook Twitter


Understanding JSON: the 3 minute lesson. 'Simon' on Sun, 23 Jul 2006 18:22:02 GMT, sez: Brilliant.

Understanding JSON: the 3 minute lesson

I had (sub-consiously) followed steps 1 to 4 exactly as you describe, except the alarm bells were 3 days ago. Thankyou for saving me the agro of looking it up for myself. 'John' on Sun, 23 Jul 2006 19:35:19 GMT, sez: INI files Rule! Anyway, nice post on LEON er, JSON. 'Rumen Stankov' on Mon, 24 Jul 2006 06:29:04 GMT, sez: Ah! 'Wesley Shephard' on Mon, 24 Jul 2006 22:20:38 GMT, sez: Interesting. SQL injection, take two? 'lb' on Tue, 25 Jul 2006 00:04:01 GMT, sez: yeh it looks very 'injectable' -- maybe more prone to XSS (cross site scripting) than sql injection... i guess the main trick is html encoding all user input, so it can't be interpreted as html (or javascript). 'Dustin Diaz' on Tue, 25 Jul 2006 13:49:44 GMT, sez: JSON in and of itself is not what's OO. Json.NET - Newtonsoft. Popular high-performance JSON framework for .NET Version 6.0.2 - Created by James Newton-King - Product product = new Product();product.Name = "Apple";product.Expiry = new DateTime(2008, 12, 28);product.Sizes = new string[] { "Small" }; string json = JsonConvert.SerializeObject(product); Serialize JSON Deserialize JSON JArray array = new JArray();array.Add("Manual text");array.Add(new DateTime(2000, 5, 23)); JObject o = new JObject();o["MyArray"] = array; string json = o.ToString(); LINQ to JSON Validate JSON World-class JSON Serializer Serialize and deserialize any .NET object with Json.NET's powerful JSON serializer.

Json.NET - Newtonsoft

LINQ to JSON. Introducing JSON. - Scott Hanselman - Serializing Objects as JavaS. Speeding Up AJAX with JSON. When Microsoft added the ActiveX XMLHTTP object to Internet Explorer's implementation of JavaScript, the company planted the seed for the revolution in Web applications known as Asynchronous JavaScript and XML, or AJAX.

Speeding Up AJAX with JSON

Today, Firefox, Safari, Opera, and other browsers all support what is now known as XMLHttpRequest, making possible sites such as,, and These and other sites feature applications that act and feel like other desktop applications—even though they're running in a browser. In AJAX, the JavaScript on the page sends requests to a Web server for data while the user's viewing and interacting with the page (hence the "asynchronous" part of AJAX). Those requests are HTTP requests just like the one the browser used to retrieve the page in the first place, as well as any images, stylesheets, and so forth. As such, the XMLHttpRequest object can be used to retrieve any kind of data, not just XML. Fortunately, there's a better way. <? Page 1 of 2. Atlas notes : Implementing a Slider control with the Atlas frame. Implementing a Slider control with the Atlas framework Though the Atlas framework is in its CTP stage, there are already many controls available for use.

Atlas notes : Implementing a Slider control with the Atlas frame

For example, the Agility team is doing a great job with the Atlas Control Toolkit, a set of Atlas controls that can be used through extenders. On the other hand, some classic client-side controls like a menu, a calendar or a slider are missing at the moment (but if you have coded one using the Atlas framework, please let me know). For this reason, I've decided to implement the last of these three controls: the slider. Download the code UsageThe slider control follows the "classic" Atlas approach of upgrading a portion of static html into an Atlas control. In the above code, we declared two layers: the first one is the "rail" or "line" container, and we should set its appearance through CSS and the background-image property (check the example that I've included in the archive).