Welcome to Michaels Blog

All posts tagged with label JSON

Blog of latest news, updates, and stories for developers

Encrypt your AJAX traffic using Microsoft Silverlight and Ajax.NET Professional

Some of you maybe remember that I had added some security related features in Ajax.NET Professional [1]. It is possible to put an AJAX token or to simple encrypt the data that gets over the lines. With Silverlight [2] we get the System.Security.Cryptography namespace on the client – before it was not very easy to encrypt a string without any plug-in (well, there are some implementations of Blowfish available in JavaScript [3]).

Posted by Michael Schwarz on Thursday, November 13, 2008

My own small .NET Micro Framework Web Server

While developing my small Ajax.NET M! library [1] for creating Web applications that run on the .NET Micro Framework [2] I have started to write my own Web server. Some years ago I wrote a simple SMTP/POP server [3] and using some code from there was a great help. The first version will only return static HTML pages e.g. for documentation or help files. As there is no file system on those devices I use the embedded resource strings to return the content.

Posted by Michael Schwarz on Thursday, March 6, 2008

Ajax.NET M! - The .NET Micro Framework AJAX Library

The embeddedworld2008 [1] is over and I had some time to play around with Microsoft .NET Micro Framework [2] devices. I can remember that I had a look on it during the first available betas on Microsoft Connect, but then stopped watching it because of the missing TCP/IP stack. The now available version 2.5 of the .NET Micro Framework [3] adds this directly in the framework. Other device manufactures have implemented their own TCP/IP stack, and such a device I have bought at the embeddedworld2008.

Posted by Michael Schwarz on Wednesday, March 5, 2008


James has published a first beta of LINQ to JSON [1] support in his Json.NET library [2]. It looks very similar to my LINQ support in an internal build of Ajax.NET Professional [3] which never has been released.

Posted by Michael Schwarz on Tuesday, February 12, 2008

Volta - Microsoft Live Labs

Volta - Microsoft Live LabsOn December 5th last year Microsoft Live Labs announced the Volta technology preview [1], a developer toolset for building multi-tier web applications using existing and familiar tools, techniques and patterns. You architect and built your application as a .NET client application, assigning the portions of the application that run on the server tier and client tier late in the development process. You can target either web browsers or the CLR as clients and Volta handles the complexities of tier-splitting. The compiler creates cross-browser JavaScript for the client tier, web services for the server tier, and all communication, serialization, synchronization, security, and other boilerplate code to tie the tiers together. In effect, Volta offers a best-effort experience i n multiple environments without requiring tailoring of the application.

Posted by Michael Schwarz on Thursday, January 3, 2008

.NET AJAX Survey Results

Simone [1] has finished the survey and published the results of the survey about the usage of AJAX among .NET web developers [2]. The results are very interesting. The most used AJAX toolkit is ASP.NET AJAX [3] with about 73.7% followed by the AJAX Control Toolkit [4] which is used by almost half of the .NET developers that are using AJAX.

Posted by Michael Schwarz on Friday, December 21, 2007

Microsoft Silverlight 2.0 Wish List

silverlight Well, the year 2007 is nearly at the end and I have my short wish list for Microsoft Silverlight [1]. The following (maybe not complete) unsorted list would be nice to see in 2008 with the next CTP or final version:

Posted by Michael Schwarz on Thursday, December 20, 2007

MVC Web Application and JSON

I like the MVC (Model View Controller) framework which is available as a public CTP, now. You can download the latest bits with the ASP.NET 3.5 Extensions CTP Preview [1]. You will find further links at Scott Guthrie's posts tagged with MVC [2].

Posted by Michael Schwarz on Wednesday, December 19, 2007

Ajax usage among .NET developers

Simone Chiaretta [1] had a look at the results of Ajaxian's survey [2] about the state of the usage in the Web development community. He decided to make a new survey [3], but this time only focused on .NET developers.

Posted by Michael Schwarz on Wednesday, December 19, 2007

[de] Dodned Usergroup Nachtrag

Ich hatte gestern eine kurze Einführung zu jQuery gemacht, hier noch einmal die wichtigsten Links für Download und Dokumentation:

Posted by Michael Schwarz on Friday, November 30, 2007

Silverlight Tutorials

There are a couple of great tutorials on how to developer Microsoft Silverlight [1] 1.0 or 1.1 Web applications:

Posted by Michael Schwarz on Wednesday, June 6, 2007

Silverlight and JSON

Silverlight 1.1 [1] comes with an built-in JSON serializer which can serialize common data types like string, numbers and arrays. It includes a object serializer, too, I think it is nearly the same as in ASP.NET AJAX or Ajax.NET Professional.

Posted by Michael Schwarz on Friday, June 1, 2007

AjaxPro more JSON compliant

I put the next beta version online to test the new JSON converters. I have added a new web.config paramter which will bring JSON converters to render a different output.

Posted by Michael Schwarz on Monday, April 23, 2007

Download AjaxPro Beta with jQuery Support

I forgot to put the beta version online that will support jQuery and json.js from http://www.json.org [1]. You can download the latest beta of the AjaxPro library at http://www.ajaxpro.info/download/jQueryAjaxPro.zip [2]. The download currently includes only the .NET 2.0 library including a Visual Studio .NET 2005 Web Site project.

Posted by Michael Schwarz on Sunday, April 15, 2007

Looking Forward to next AjaxPro Release

Some developers mentioned that it would be nice if Ajax.NET Professional [1] could be more JSON compliant to use with some JavaScript frameworks that are not using the eval statement. And, if you have a look at json.org [2] JSON message always have to be an object or array, not a string or boolean directly. Well, I absolutly see the need of these changes and I have done this already in a beta version which I will provide this evening.

Posted by Michael Schwarz on Friday, April 13, 2007

How do I hack a web site?

On next Tuesday I will talk at the .NET User Group in Munich / Germany [1] about following topics:

Posted by Michael Schwarz on Wednesday, January 10, 2007

Rules you need for Fiddler

From time to time I install Fiddler [1] on new PCs and everytime I have the same problem: which rules do I need to get most from Fiddler. Here are my top 5 rules [2] I use:

Posted by Michael Schwarz on Tuesday, December 5, 2006

.NET Developers Group München - Web 2.0 für Webentwickler

Ich bin morgen Abend (20. November 2006) bei der .NET Developers Group München [1] und spreche über Web 2.0. In meinem Vortrag möchte ich verschiedene Frameworks (Yahoo! UI, Dojo, AjaxPro [2], Microsoft ASP.NET AJAX) kurz vorstellen, und auch Funktionen zeigen, die viele bis jetzt wohl noch nicht kennen (wie z.B. das lokale Cachen von Daten oder eine Offline AJAX Anwendung). Außerdem habt ihr die Chance Bücher zum Thema AJAX zu gewinnen, es lohnt sich also auf jeden Fall vorbeizuschauen.

Posted by Michael Schwarz on Monday, November 20, 2006

Yahoo! JavaScript Library and AjaxPro

There are a lot of great JavaScript libraries available that are used be developers to add Ajax and Web 2.0 to their web sites. While AjaxPro [1] is optimized to run on all web browsers including Windows Mobile devices I got some requests on supporting the Yahoo! JavaScript libraries [2]. I have done some internal changes that will allow you do use the Yahoo! JavaScript files instead of the generated files from AjaxPro. Because there is no JSON parser in the Yahoo! lib I'm using the json.js written by Douglas Crockford [3]. But first have a look at the ASP.NET page (C#):

Posted by Michael Schwarz on Friday, October 6, 2006

AjaxPro JSON serialization about three (3!!!) times faster

The weekend I had time to do some serialization performance changes. The new beta version that is available here [1] is about three times faster than the current release version [2]. I have done some changes to the IJavaScriptConverter interface (method Serialize) to support the StringBuilder like it was in earlier days with Ajax.NET (not AjaxPro). There are some more changes done to improve the serialization from .NET types to JSON.

Posted by Michael Schwarz on Monday, September 25, 2006

AjaxPro JSON Parser and Dates

Because there are a lot of developers using the stand-alone JSON parser (which is included in the release package of AjaxPro [1]) I decided today to serialize the .NET data type System.DateTime with the UniversalSortableDateTimePattern (yyyy'-'MM'-'dd HH':'mm':'ss'Z') as a simple string. You can use this string as input value, too, it will be parsed to an .NET System.DateTime.

Posted by Michael Schwarz on Friday, September 22, 2006

C# and VB.NET Visual Studio .NET 2005 Template

I will add the VS.NET 2005 project templates for C# and VB.NET to the next releases, too. A current version is available at Google Groups - AjaxPro [1].

Posted by Michael Schwarz on Monday, September 18, 2006

Albert Weinert will talk about Ajax.NET Professional in Cologne, Germany

Alber Weinert [1] is talking [2] about Ajax.NET Professional [3] (and details on JSON [4]) in Cologne, Germany:

Posted by Michael Schwarz on Wednesday, July 19, 2006

Yahoo! Web Services Request and AjaxPro JSON Parser - I love it!

Yesterday night I build an example on how to use Yahoo! Web Services [1] with the AjaxPro JSON parser [2]. The example will call a Yahoo! Web Service with output type set to JSON (see http://developer.yahoo.com/common/json.html [3]). The response will be deserialized to an .NET structure using the AjaxPro JSON parser (from the stand-alone version or the build-in parser in Ajax.NET Professional).

Posted by Michael Schwarz on Tuesday, July 11, 2006

Download new JSON stand-alone library for Microsoft .NET 1.1/2.0

There is a new stand-alone version for JSON [1] serialization/deserialization library available for Microsoft .NET 1.1/2.0. The JSON parser is extracted from my Ajax.NET Professional [2] library and will be available in the download package in the future. Download the new version at http://www.ajaxpro.info/ [2] (see the new link for the stand-alone version).

Posted by Michael Schwarz on Monday, July 10, 2006

Serializing Objects as JSON using Atlas, JSON.NET and AjaxPro [Part 2]

As there was a little discussion [1] about serialization of .NET types and deserialization of these genereted JSON strings I have updated Ajax.NET Professional [2] (version to allow parsing of new Date statements, too. You can use the JSON generated string to do a deserialization right after, now.

Posted by Michael Schwarz on Monday, July 10, 2006

AJAX Web Applications and Time Zones

Because I'm currently playing with a lot of AJAX frameworks I'm searching for the correct use of dates and times in web applications. Ajax.NET Professional [1] is using time zone indentifier to know from which time zone the request is comming from. See following server-side C# code:

Posted by Michael Schwarz on Friday, July 7, 2006

Why Ajax.NET Professional is using the __type property?

Ajax.NET Professional [1] is using attributes, there is no need to inherit from special pages or include dummy web controls to do all the job, there is no need to write special source code. Any .NET assembly can include classes with AjaxMethods that can be used in your ASP.NET web application.

Posted by Michael Schwarz on Friday, July 7, 2006

Serializing Objects as JSON using Atlas, JSON.NET and AjaxPro [Part 1]

I read the post from Scott Hanselman [1] today comparing the internal use of JSON de-/serializer from the Atlas framework [2] and Ajax.NET Professional [3].

Posted by Michael Schwarz on Wednesday, July 5, 2006

RSS feed available for Ajax.NET Professional Releases

I will start to publish new releases with an RSS feed in the next days. The URL for the RSS feed is http://www.ajaxpro.info/changes.xml [1] where you can see a first version of the latest changes already. The links for each release (post) is currently the same for each release. I will add links for each release to the Ajax.NET Professional Google group [2] threads that are talking about the changes for each version.

Posted by Michael Schwarz on Thursday, June 29, 2006

Why I hate Web 2.0/AJAX?

Posted by Michael Schwarz on Wednesday, June 21, 2006

XML -> JSON Serialization

With the next release of Ajax.NET Professional you will be able to transform any XmlDocument or XmlNode into a JSON object. This is really cool because we have already a lot of xml documents in our web applications. Currently you have to write a custom class or struct where you have to fill the properties or public fields. Now, you simply call the JavaScriptUtil.GetIJavaScriptObjectFromXmlNode method to return a JavaScript object. At http://munich.schwarz-interactive.de/datatype.aspx [1] I have added a new test (Test 32) which will read the RSS from the Google group and display the title and last 10 posts.

Posted by Michael Schwarz on Monday, June 19, 2006

Pocket PC 2003 Support

The new version will support Pocket PC 2003 and Windows Mobile 5 devices including Smart Phones, too.

Posted by Michael Schwarz on Tuesday, June 13, 2006

Ajax.NET Professional with new Converters

I put the new version online, download the latest DLL at http://www.ajaxpro.info/ [1]. There are a lot of performance changes done, and the lib is now working perfect with the script.aculo.us effects. A not yet finished updated version of the Starter Kit is online, see http://munich.schwarz-interactive.de/ [2]. See the changes here:

Posted by Michael Schwarz on Friday, June 2, 2006

The Bitmap is back...!

Today I added the BitmapConverter.cs which will support returning a Bitmap directly from Ajax.NET Professional [1]. Attached to the Google groups thread [2] you will see what is working today (the Bitmap example is the method Test27). Of course, I didn't add all data types...  ;)

Posted by Michael Schwarz on Thursday, June 1, 2006