JSON in non javascript applications

I am looking to save and receive a large amount of data such as key-value pairs over a wire. Is it appropriate for me to use JSON for this purpose against XML?

Is JSON used in applications other than Javascript?

Are there any advantages of using JSON for this purpose in relation to old old XML?

+5
source share
8 answers

JSON is great for this use and will be more compact than XML. (We make extensive use of it in a non-Javascript application and allow users of our REST web services to indicate whether they want data in XML, JSON, or even XHTML views.)

: , , , , 50-70% GZIP-/ XML JSON. . GZipStream.

+14

JSON - Javascript (AJAX), , , / JSON. , Python 6 .

JSON " " , , XML. , - , , - , JSON .

+6

JSON , XML, , CouchDB, / JSON .

+4

, JSON , XML, :

  • API / .
    • , .
  • , .
    • , .
+2

JSON, : JSON . , , -, , JSON .

, -, , , JSON , , . : ? 32- ?

XML, , . , xsi:type, XML-. , , , , .

+2

, , .

# JSON, . - , , , , , JSON, - XML.

# http://json.org.

, , , , → → 100 , .

, , .

, , XML LINQ, , LINQ, , , , , .

, , , - , , .

+2

, XML, . .

, XML (, ).

" UTF-8", .

, JSON , / //, , , .

JSON, JSON XML, , Microsoft.NET:)

0

IMO, if you are going to persist and want to be able to update the application (which is almost always the case), you must create your serialization code manually and create a documented file format. Otherwise, at some point you are faced with big problems.

-3
source

All Articles