Using JavaScript Object Notation in Java ME for Data Interchange

Choosing the right data interchange format is an important design decision when building any network-aware software. This is especially true when designing mobile and embedded applications, where attributes such as lightweight and efficient are important characteristics to consider. In mobile applications, developers typically rely on home-grown data-interchange formats or on the Extensible Markup Language (XML). The advantage of the former is that it can be tailored to particular situations for the purpose of maximizing performance and/or computational resources. The advantage of the latter, when used over HTTP, is that it is a de facto standard for data interchange. In addition, the text-based/human-readable representation used in XML makes it easier to debug.

Yet these two approaches also have disadvantages, one being proprietary in nature, non-standard, and potentially non-interoperable, while the other one could be considered too heavy and verbose for data representation, again this is especially true for mobile and embedded applications.

An alternative is the JavaScript Object Notation (JSON), a lightweight data-interchange format. This articles introduces JSON for data interchange in the Java Platform, Micro Edition (Java ME).

JSON is part of the JavaScript (ECMAScript) scripting language. Being native to JavaScript, JSON is ideal for browser-based applications. But JSON is not limited to JavaScript, and its lightweight characteristics make it attractive for mobile and embedded applications.

Read the full article.

Comments:

hi

Posted by kamiab on September 04, 2008 at 08:05 PM PDT #

Hey,

Please fix the link from the "Scripting Resource Center" page. It is broken. It had a space (%20) in the URL.

regards,
Raj

Posted by Raj on October 15, 2008 at 12:47 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Events, articles, breaking news. A need-to-know resource for web developers who program and develop web apps using javascript, ajax, php, python, jmaki, javafx script, and tools.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today