From 3cae8448999639afcbaedd926457629b09fa3d34 Mon Sep 17 00:00:00 2001 From: "Gordon P. Hemsley" Date: Tue, 14 Jan 2014 23:18:50 -0500 Subject: Add entry for JSON (application/json). --- freedesktop.org.xml.in | 8 ++++++++ tests/json_array.json | 22 ++++++++++++++++++++++ tests/json_object.json | 13 +++++++++++++ tests/list | 3 +++ 4 files changed, 46 insertions(+) create mode 100644 tests/json_array.json create mode 100644 tests/json_object.json diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 9d06800..534c1fe 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -2150,6 +2150,14 @@ command to generate the output files. + + <_comment>JSON document + JSON + JavaScript Object Notation + + + + <_comment>JBuilder project diff --git a/tests/json_array.json b/tests/json_array.json new file mode 100644 index 0000000..2a0cb68 --- /dev/null +++ b/tests/json_array.json @@ -0,0 +1,22 @@ +[ + { + "precision": "zip", + "Latitude": 37.7668, + "Longitude": -122.3959, + "Address": "", + "City": "SAN FRANCISCO", + "State": "CA", + "Zip": "94107", + "Country": "US" + }, + { + "precision": "zip", + "Latitude": 37.371991, + "Longitude": -122.026020, + "Address": "", + "City": "SUNNYVALE", + "State": "CA", + "Zip": "94085", + "Country": "US" + } +] diff --git a/tests/json_object.json b/tests/json_object.json new file mode 100644 index 0000000..c99cd79 --- /dev/null +++ b/tests/json_object.json @@ -0,0 +1,13 @@ +{ + "Image": { + "Width": 800, + "Height": 600, + "Title": "View from 15th Floor", + "Thumbnail": { + "Url": "http://www.example.com/image/481989943", + "Height": 125, + "Width": "100" + }, + "IDs": [116, 943, 234, 38793] + } +} diff --git a/tests/list b/tests/list index 48bce63..c125c8f 100644 --- a/tests/list +++ b/tests/list @@ -216,6 +216,9 @@ bug-30656-xchat.conf text/plain x helloworld.java text/x-java ox # Copied from http://asurvey.net/ccsfagent/media/survey.js survey.js application/javascript ox +# The following two copied from RFC 4627. +json_object.json application/json ox +json_array.json application/json ox test.cs text/x-csharp ox test.dot text/vnd.graphviz x test.vala text/x-vala ox -- 1.8.3.2