This document describes the development of a new mobile notice board app called UNews that aims to improve upon the shortcomings of existing physical notice boards. The existing boards are described as unorganized, scattered, temporary, having fixed space and being crowded. The new UNews app is proposed to be mobile, organized, compact, permanent, secured, personalized with unlimited space. It will use a Django server backend with an Ajax-driven front-end for asynchronous data transfer without page reloads. JSON will be used for lightweight data interchange and an Android app will provide the mobile experience.
25. JSON
JavaScript Object Notation
Readable
Light Weight Data Interchange
Language Independent
Universal data structures
Fast
26. JSON vs XML
Xml format
<name>
<first>John</first>
<last>Smith</last>
</name>
JSON format
{first:John", "last:Smith}
27. JSON Performance
JSON XML
Trial 1 Number Of Objects 20000 20000
Trial 1 Total Time (ms) 2213.15 61333.68
Trial 1 Average Time (ms) 0.11 3.07
Trial 2 Number Of Objects 40000 40000
Trial 2 Total Time (ms) 3127.99 123854.59
Trial 2 Average Time (ms) 0.08 3.10
28. JSON Structure
{"data": [
{"applicableto": "All Branches",
"added": "2012-01-21, 21:57",
"heading": "Holiday",
"content": "Holiday on Jan 26",
"adder": "kitscse",
"id": "4} ]
}