Why all those json?

Topics: Business Logic Layer
Apr 16, 2012 at 7:16 PM

I have been reading the source code recently and found all the CRUD operations are performed using JSON. There are a lot of calls from admin.js and AjaxHelper.aspx.

Not very familiar with JSON, I find it painful (not impossible, though) to read the codes. Can anyone tell me why BlogEngine is so heavy in this "java thing"? Is it out of some performance concern or something else? I really hope we can do it in a more familiar way.

Apr 16, 2012 at 8:14 PM

Simply put, we needed client-side solution to AJAXify admin panel. Nobody likes page reloads, people were complaining a lot. The choices at the moment were mostly between jQuery and ASP.NET Ajax library. Considering later retired and ASP.NET now ships with jQuery choosing jQuery was a right decision :) jQuery relies on JSON for AJAX calls, so here we are...

Dave Ward has a great blog about the subject, and here is general why use JSON overview.

Apr 17, 2012 at 1:16 PM

Thank you for this clarification. Now I understand better.