Is JSON used only for JavaScript?

I store a JSON string in a database that represents a set of properties. In the code behind, I export it and use it for some user logic. In fact, I only use it as a storage engine. I understand that XML is better for this, but I read that JSON is faster and preferable.

Is it good to use JSON if the intention is not to use a string on the client side?

+5
source share
8 answers

JSON is a perfectly valid way to store structured data and is simpler and more concise than XML. I don’t think it’s a “bad practice” to use it for the same reason that someone will use XML as long as you understand it, and in order with its limitations.

+8
source

Good practice, I can’t say, but it seems strange to me. At least, the presence of XML fields in your SQL database may be requested (SQL Server 2000 or later, MySQL and others), but most often this is the last resort for metadata.

JSON JavaScript , , JSON , CouchDB SOLR JSON .

, JSON ( ) XML, JSON vs XML rant :).

JSON , , SQL, .NET.

+5

, JSON . CouchDB - - , JSON . XML, JSON. HTTP.

, CouchDB IBM Apache Software Foundation. Erlang promises (IMHO).

+4

, , JSON . . JSON.

+2

JSON - , XML, - . , ( , / ).

, . SQL Server 2005 , ​​ XML, XML, XQuery XQuery . , , XML .

+2

, JSON , XML ; , . , JSON, XML. , , ... :)

+1

JSON , . , , XML .

, - " json " % somevalue% ", . ( xml).

0

JSON XML . JSON XML - , .

, , . , SQL.

-1

All Articles