Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
JSON
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Uses == [[JSON-RPC]] is a [[remote procedure call]] (RPC) protocol built on JSON, as a replacement for [[XML-RPC]] or [[SOAP]]. It is a simple protocol that defines only a handful of data types and commands. JSON-RPC lets a system send notifications (information to the server that does not require a response) and multiple calls to the server that can be answered out of order. [[Asynchronous JavaScript and JSON]] (or AJAJ) refers to the same [[dynamic web page]] methodology as [[Ajax (programming)|Ajax]], but instead of [[XML]], JSON is the data format. AJAJ is a web development technique that provides for the ability of a [[web page]] to request new data after it has loaded into the [[web browser]]. Typically, it renders new data from the server in response to user actions on that web page. For example, what the user types into a [[Text box|search box]], [[Client-side scripting|client-side code]] then sends to the server, which immediately responds with a [[drop-down list]] of matching [[database]] items. JSON has seen [[ad hoc]] usage as a [[configuration file|configuration language]]. However, it does not support [[Comment (computer programming)|comments]]. In 2012, Douglas Crockford, JSON creator, had this to say about comments in JSON when used as a configuration language: "I know that the lack of comments makes some people sad, but it shouldn't. Suppose you are using JSON to keep configuration files, which you would like to annotate. Go ahead and insert all the comments you like. Then pipe it through JSMin<ref>{{cite web|url=https://www.crockford.com/jsmin.html|title=JSMin|last=Crockford|first=Douglas|date=2019-05-16|access-date=2020-08-12|quote=JSMin [2001] is a minification tool that removes comments and unnecessary whitespace from JavaScript files.}}</ref> before handing it to your JSON parser."<ref name=DouglasCrockfordComments/> [[MongoDB]] uses JSON-like data for its [[document-oriented database]]. Some relational databases have added support for native JSON data types, such as JSONB in PostgreSQL<ref>{{cite web|url= https://www.cockroachlabs.com/docs/stable/jsonb#:~:text=The%20JSONB%20data%20type%20stores%20JSON%20(JavaScript,JSONB%20value%2C%20which%20eliminates%20whitespace%2C%20duplicate%20keys%2C|work= www.cockroachlabs.com|title=JSONB data type| access-date=1 April 2025}}</ref> and JSON in MySQL.<ref>{{cite web|url=https://dev.mysql.com/doc/refman/8.4/en/json.html|work=dev.mysql.com|title=The JSON data type|access-date=1 April 2025}}</ref> This allows developers to insert JSON data directly without having to convert it to another format.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)