JSON Example. This page shows examples of messages formatted using JSON (JavaScript Object Notation). The same text expressed as XML:

Similar documents
Working with Webservices (Cloud Services)

Discussion #4 CSS VS XSLT. Multiple stylesheet types with cascading priorities. One stylesheet type

WildFly and Java EE 7. What are they? New Features Some Examples Questions

What is REST? ; Erik Wilde ; UC Berkeley School of Information

Mobile Systeme Grundlagen und Anwendungen standortbezogener Dienste. Location Based Services in the Context of Web 2.0

Andrew Nguyen - Brian Payton - Chunyang Xia

Session 14. Serialization/JSON. Lecture Objectives

Implementing a Notification Server

Configuring Tomcat for a Web Application

PRODUCT DOCUMENTATION. Installing and Implementing Enterprise Contact Center Chat RELEASE 5.1

Common-Controls Quickstart

JSF - Facelets Tags JSF - template tags

Using MySQL with the Dojo Toolkit. Martin MC Brown, Sun Microsystems

Disk-Level Encryption

CS109 Data Science Data Munging

CS 417 9/18/17. Paul Krzyzanowski 1. Socket-based communication. Distributed Systems 03. Remote Procedure Calls. Sample SMTP Interaction

The DataNucleus REST API provides a RESTful interface to persist JSON objects to the datastore. All entities are accessed, queried and stored as

Distributed Systems. 03. Remote Procedure Calls. Paul Krzyzanowski. Rutgers University. Fall 2017

Introduction to XML. An Example XML Document. The following is a very simple XML document.

Structure of a webapplication

Java JSON Tools version 1.2

Unstructured data. Sample databases included with Access

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Service Oriented Computing: Cloud and Restful Services. Dr. Cristian Mateos Diaz ( ISISTAN - CONICET

Google Web Toolkit Creating/using external JAR files

TODAY S SEMANTIC WEB WHAT IT AMOUNTS TO; WHY IT IS ILL-CONCEIVED; HOW IT COULD BE FIXED

Customizing ArcIMS Using the Java Connector and Python

Web Development and HTML. Shan-Hung Wu CS, NTHU

Single-source Publishing with DocBook 4

COMP60411: Modelling Data on the Web SAX, Schematron, JSON, Robustness & Errors Week 4. Bijan Parsia & Uli SaJler University of Manchester

INTRODUCTION TO MONGODB. MONGODB INTRODUCTION AND PRACTICE Raja CHIKY ISEP Paris

COMP60411: Modelling Data on the Web SAX, Schematron, JSON, Robustness & Errors Week 4. Bijan Parsia & Uli SaJler University of Manchester

Website Creating Content

Tapestry. Code less, deliver more. Rayland Jeans

Stamp Builder. Documentation. v1.0.0

COMP60411: Modelling Data on the Web Schematron, SAX, JSON, errors, robustness week 4

Developing Ajax Web Apps with GWT. Session I

White Paper. Fabasoft Folio Portlet. Fabasoft Folio 2017 R1 Update Rollup 1

jmaki Overview Sang Shin Java Technology Architect Sun Microsystems, Inc.

servlets and Java JSP murach s (Chapter 2) TRAINING & REFERENCE Mike Murach & Associates Andrea Steelman Joel Murach

COMP60411 Semi-structured Data and the Web Datatypes Relax NG, XML Schema, and Tree Grammars XSLT

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Java Finite State Machine Framework

Announcements. Paper due this Wednesday

COMP60411: Modelling Data on the Web Schematron, SAX, JSON, Robustness & Errors Week 4

UNIT - III. Every element in a document tree refers to a Node object. Some nodes of the tree are

Introduction Haim Michael. All Rights Reserved.

Introduction to Pyparsing: An Object-oriented Easy-to-Use Toolkit for Building Recursive Descent P... Page 1 of 15

Chapter #1. Program to demonstrate applet life cycle

Web Systems & Technologies: An Introduction

Web Technology for Test and Automation Applications

S imilar to JavaBeans, custom tags provide a way for

Irresistible APIs by Kirsten L. Hunter

Here are a few easy steps to create a simple timeline. Open up your favorite text or HTML editor and start creating an HTML file.

Advanced Dreamweaver CS6

Web Systems & Technologies: An Introduction

5.1 Registration and Configuration

Manual Html Image Src Url Path Not Working

HTML. Hypertext Markup Language. Code used to create web pages

Index LICENSED PRODUCT NOT FOR RESALE

Web AppBuilder for ArcGIS Dive Into Mobile Development. Yiwei Ma & Kevin Gao

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

web.xml Deployment Descriptor Elements

Web Dashboard User Guide

Trabalhando com JavaServer Pages (JSP)

Validator.nu Validation 2.0. Henri Sivonen

SAS Web Infrastructure Kit 1.0. Developer s Guide

1. What is This Guide about / Goals The Project JGuard Configuration... 11

Advances in TVMLKit. App Frameworks #WWDC17. Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

ACCUZIP EDDM UI REST API CALLS. 100% Cloud Based EDDM List Creation. Abstract EDDM UI to select Carrier Route Boundaries throughout the United States

&' () - #-& -#-!& 2 - % (3" 3 !!! + #%!%,)& ! "# * +,

Web Standards Mastering HTML5, CSS3, and XML

Table of contents. Universal Data Exporter ASP DMXzone.com

CIS 408 Internet Computing. Dr. Sunnie Chung Dept. of Electrical Engineering and Computer Science Cleveland State University

Web System and Technologies (Objective + Subjective)

STD 7 th Paper 1 FA 4

Markup Language. Made up of elements Elements create a document tree

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

The main differences with other open source reporting solutions such as JasperReports or mondrian are:

Hotfix 913CDD03 Visual Data Explorer and SAS Web OLAP Viewer for Java

Easing into DITA Publishing with TopLeaf

Basics of Web Technologies

introduction to XHTML

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

JUnit Recipes. Practical Methods for Programmer Testing. J. B. Rainsberger. with contributions by Scott Stirling MANNING

Contents. 1. Using Cherry 1.1 Getting started 1.2 Logging in

Best Practices for Using the Rich Text Editor

GWT - RPC COMMUNICATION

Interactive Mobile Device Video App Tutorial

Advanced Web Technologies 8) Facelets in JSF

PORTIONS (PORTlet actions) User Guide

Ehcache Web Cache User Guide

CS WEB TECHNOLOGY

Develop Mobile Front Ends Using Mobile Application Framework A - 2

The Struts MVC Design. Sample Content

Best Practices for Using the Rich Text Editor

Writing Secure Chrome Apps and Extensions

Transcription:

JSON Example This page shows examples of messages formatted using JSON (JavaScript Object Notation). "glossary": "title": "example glossary", "GlossDiv": "title": "S", "GlossList": "GlossEntry": "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": "para": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML"], "GlossSee": "markup" The same text expressed as XML: <!DOCTYPE glossary PUBLIC "-//OASIS//DTD DocBook V3.1//EN"> <glossary><title>example glossary</title> <GlossDiv><title>S</title> <GlossList> <GlossEntry ID="SGML" SortAs="SGML"> <GlossTerm>Standard Generalized Markup Language</GlossTerm> <Acronym>SGML</Acronym> <Abbrev>ISO 8879:1986</Abbrev> <GlossDef> <para>a meta-markup language, used to create markup languages such as DocBook.</para> <GlossSeeAlso OtherTerm="GML"> <GlossSeeAlso OtherTerm="XML"> </GlossDef> <GlossSee OtherTerm="markup"> </GlossEntry> </GlossList> </GlossDiv> </glossary> "menu": "id": "file", "value": "File", "popup": "menuitem": [ "value": "New", "onclick": "CreateNewDoc()", "value": "Open", "onclick": "OpenDoc()", "value": "Close", "onclick": "CloseDoc()" ] http://json.org/example.html 1/10

The same text expressed as XML: <menu id="file" value="file"> <popup> <menuitem value="new" onclick="createnewdoc()" /> <menuitem value="open" onclick="opendoc()" /> <menuitem value="close" onclick="closedoc()" /> </popup> </menu> "widget": "debug": "on", "window": "title": "Sample Konfabulator Widget", "name": "main_window", "width": 500, "height": 500, "image": "src": "Images/Sun.png", "name": "sun1", "hoffset": 250, "voffset": 250, "alignment": "center", "text": "data": "Click Here", "size": 36, "style": "bold", "name": "text1", "hoffset": 250, "voffset": 100, "alignment": "center", "onmouseup": "sun1.opacity = (sun1.opacity / 100) * 90;" The same text expressed as XML: <widget> <debug>on</debug> <window title="sample Konfabulator Widget"> <name>main_window</name> <width>500</width> <height>500</height> </window> <image src="images/sun.png" name="sun1"> <hoffset>250</hoffset> <voffset>250</voffset> <alignment>center</alignment> </image> <text data="click Here" size="36" style="bold"> <name>text1</name> <hoffset>250</hoffset> <voffset>100</voffset> <alignment>center</alignment> <onmouseup> sun1.opacity = (sun1.opacity / 100) * 90; </onmouseup> </text> </widget> "web-app": "servlet": [ "servlet-name": "cofaxcds", "servlet-class": "org.cofax.cds.cdsservlet", "init-param": "configglossary:installationat": "Philadelphia, PA", "configglossary:adminemail": "ksm@pobox.com", "configglossary:poweredby": "Cofax", http://json.org/example.html 2/10

"configglossary:poweredbyicon": "/images/cofax.gif", "configglossary:staticpath": "/content/static", "templateprocessorclass": "org.cofax.wysiwygtemplate", "templateloaderclass": "org.cofax.filestemplateloader", "templatepath": "templates", "templateoverridepath": "", "defaultlisttemplate": "listtemplate.htm", "defaultfiletemplate": "articletemplate.htm", "usejsp": false, "jsplisttemplate": "listtemplate.jsp", "jspfiletemplate": "articletemplate.jsp", "cachepackagetagstrack": 200, "cachepackagetagsstore": 200, "cachepackagetagsrefresh": 60, "cachetemplatestrack": 100, "cachetemplatesstore": 50, "cachetemplatesrefresh": 15, "cachepagestrack": 200, "cachepagesstore": 100, "cachepagesrefresh": 10, "cachepagesdirtyread": 10, "searchenginelisttemplate": "forsearchengineslist.htm", "searchenginefiletemplate": "forsearchengines.htm", "searchenginerobotsdb": "WEB-INF/robots.db", "usedatastore": true, "datastoreclass": "org.cofax.sqldatastore", "redirectionclass": "org.cofax.sqlredirection", "datastorename": "cofax", "datastoredriver": "com.microsoft.jdbc.sqlserver.sqlserverdriver", "datastoreurl": "jdbc:microsoft:sqlserver://localhost:1433;databasename=goon", "datastoreuser": "sa", "datastorepassword": "datastoretestquery", "datastoretestquery": "SET NOCOUNT ON;select test='test';", "datastorelogfile": "/usr/local/tomcat/logs/datastore.log", "datastoreinitconns": 10, "datastoremaxconns": 100, "datastoreconnusagelimit": 100, "datastoreloglevel": "debug", "maxurllength": 500, "servlet-name": "cofaxemail", "servlet-class": "org.cofax.cds.emailservlet", "init-param": "mailhost": "mail1", "mailhostoverride": "mail2", "servlet-name": "cofaxadmin", "servlet-class": "org.cofax.cds.adminservlet", "servlet-name": "fileservlet", "servlet-class": "org.cofax.cds.fileservlet", "servlet-name": "cofaxtools", "servlet-class": "org.cofax.cms.cofaxtoolsservlet", "init-param": "templatepath": "toolstemplates/", "log": 1, "loglocation": "/usr/local/tomcat/logs/cofaxtools.log", "logmaxsize": "", "datalog": 1, "dataloglocation": "/usr/local/tomcat/logs/datalog.log", "datalogmaxsize": "", "removepagecache": "/content/admin/remove?cache=pages&id=", "removetemplatecache": "/content/admin/remove?cache=templates&id=", "filetransferfolder": "/usr/local/tomcat/webapps/content/filetransferfolder", "lookincontext": 1, "admingroupid": 4, "betaserver": true], "servlet-mapping": "cofaxcds": "/", "cofaxemail": "/cofaxutil/aemail/*", "cofaxadmin": "/admin/*", "fileservlet": "/static/*", http://json.org/example.html 3/10

"cofaxtools": "/tools/*", "taglib": "taglib-uri": "cofax.tld", "taglib-location": "/WEB-INF/tlds/cofax.tld" The same file expressed as XML: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"> <web-app> <servlet> cofaxcds <servlet-class> org.cofax.cds.cdsservlet </servlet-class> <param-name>configglossary:installationat</param-name> <param-value>philadelphia, PA</param-value> <param-name>configglossary:adminemail</param-name> <param-value>ksm@pobox.com</param-value> <param-name>configglossary:poweredby</param-name> <param-value>cofax</param-value> <param-name>configglossary:poweredbyicon</param-name> <param-value>/images/cofax.gif</param-value> <param-name>configglossary:staticpath</param-name> <param-value>/content/static</param-value> <param-name>templateprocessorclass</param-name> <param-value>org.cofax.wysiwygtemplate</param-value> <param-name>templateloaderclass</param-name> <param-value>org.cofax.filestemplateloader</param-value> <param-name>templatepath</param-name> <param-value>templates</param-value> <param-name>templateoverridepath</param-name> <param-value></param-value> <param-name>defaultlisttemplate</param-name> <param-value>listtemplate.htm</param-value> <param-name>defaultfiletemplate</param-name> <param-value>articletemplate.htm</param-value> http://json.org/example.html 4/10

http://json.org/example.html 5/10 <param-name>usejsp</param-name> <param-value>false</param-value> <param-name>jsplisttemplate</param-name> <param-value>listtemplate.jsp</param-value> <param-name>jspfiletemplate</param-name> <param-value>articletemplate.jsp</param-value> <param-name>cachepackagetagstrack</param-name> <param-value>200</param-value> <param-name>cachepackagetagsstore</param-name> <param-value>200</param-value> <param-name>cachepackagetagsrefresh</param-name> <param-value>60</param-value> <param-name>cachetemplatestrack</param-name> <param-value>100</param-value> <param-name>cachetemplatesstore</param-name> <param-value>50</param-value> <param-name>cachetemplatesrefresh</param-name> <param-value>15</param-value> <param-name>cachepagestrack</param-name> <param-value>200</param-value> <param-name>cachepagesstore</param-name> <param-value>100</param-value> <param-name>cachepagesrefresh</param-name> <param-value>10</param-value> <param-name>cachepagesdirtyread</param-name> <param-value>10</param-value> <param-name>searchenginelisttemplate</param-name> <param-value>forsearchengineslist.htm</param-value> <param-name>searchenginefiletemplate</param-name> <param-value>forsearchengines.htm</param-value>

http://json.org/example.html 6/10 <param-name>searchenginerobotsdb</param-name> <param-value>web-inf/robots.db</param-value> <param-name>usedatastore</param-name> <param-value>true</param-value> <param-name>datastoreclass</param-name> <param-value>org.cofax.sqldatastore</param-value> <param-name>redirectionclass</param-name> <param-value>org.cofax.sqlredirection</param-value> <param-name>datastorename</param-name> <param-value>cofax</param-value> <param-name>datastoredriver</param-name> <param-value>com.microsoft.jdbc.sqlserver.sqlserverdriver</param-value> <param-name>datastoreurl</param-name> <param-value>jdbc:microsoft:sqlserver://localhost:1433;databasename=goon</param-value> <param-name>datastoreuser</param-name> <param-value>sa</param-value> <param-name>datastorepassword</param-name> <param-value></param-value> <param-name>datastoretestquery</param-name> <param-value>set NOCOUNT ON;select test='test';</param-value> <param-name>datastorelogfile</param-name> <param-value>/usr/local/tomcat/logs/datastore.log</param-value> <param-name>datastoreinitconns</param-name> <param-value>10</param-value> <param-name>datastoremaxconns</param-name> <param-value>100</param-value> <param-name>datastoreconnusagelimit</param-name> <param-value>100</param-value> <param-name>datastoreloglevel</param-name> <param-value>debug</param-value>

http://json.org/example.html 7/10 <param-name>maxurllength</param-name> <param-value>500</param-value> </servlet> <servlet> cofaxemail <servlet-class> org.cofax.cds.emailservlet </servlet-class> <param-name>mailhost</param-name> <param-value>mail1</param-value> <param-name>mailhostoverride</param-name> <param-value>mail2</param-value> </servlet> <servlet> cofaxadmin <servlet-class> org.cofax.cds.adminservlet </servlet-class> </servlet> <servlet> fileservlet <servlet-class> org.cofax.cds.fileservlet </servlet-class> </servlet> <servlet> cofaxtools <servlet-class> org.cofax.cms.cofaxtoolsservlet </servlet-class> <param-name>templatepath</param-name> <param-value>toolstemplates/</param-value> <param-name>log</param-name> <param-value>1</param-value> <param-name>loglocation</param-name> <param-value>/usr/local/tomcat/logs/cofaxtools.log</param-value> <param-name>logmaxsize</param-name> <param-value></param-value> <param-name>datalog</param-name> <param-value>1</param-value>

http://json.org/example.html 8/10 <param-name>dataloglocation</param-name> <param-value>/usr/local/tomcat/logs/datalog.log</param-value> <param-name>datalogmaxsize</param-name> <param-value></param-value> <param-name>removepagecache</param-name> <param-value>/content/admin/remove?cache=pages&id=</param-value> <param-name>removetemplatecache</param-name> <param-value>/content/admin/remove?cache=templates&id=</param-value> <param-name>filetransferfolder</param-name> <param-value>/usr/local/tomcat/webapps/content/filetransferfolder</param-value> <param-name>lookincontext</param-name> <param-value>1</param-value> <param-name>admingroupid</param-name> <param-value>4</param-value> <param-name>betaserver</param-name> <param-value>true</param-value> </servlet> <servlet-mapping> cofaxcds <url-pattern> / </url-pattern> </servlet-mapping> <servlet-mapping> cofaxemail <url-pattern> /cofaxutil/aemail/* </url-pattern> </servlet-mapping> <servlet-mapping> cofaxadmin <url-pattern> /admin/* </url-pattern> </servlet-mapping> <servlet-mapping> fileservlet

<url-pattern> /static/* </url-pattern> </servlet-mapping> <servlet-mapping> cofaxtools <url-pattern> /tools/* </url-pattern> </servlet-mapping> <taglib> <taglib-uri>cofax.tld</taglib-uri> <taglib-location>/web-inf/tlds/cofax.tld</taglib-location> </taglib> </web-app> The action and label values only need to be provided if they are not the same as the id. "menu": "header": "SVG Viewer", "items": [ "id": "Open", "id": "OpenNew", "label": "Open New", null, "id": "ZoomIn", "label": "Zoom In", "id": "ZoomOut", "label": "Zoom Out", "id": "OriginalView", "label": "Original View", null, "id": "Quality", "id": "Pause", "id": "Mute", null, "id": "Find", "label": "Find...", "id": "FindAgain", "label": "Find Again", "id": "Copy", "id": "CopyAgain", "label": "Copy Again", "id": "CopySVG", "label": "Copy SVG", "id": "ViewSVG", "label": "View SVG", "id": "ViewSource", "label": "View Source", "id": "SaveAs", "label": "Save As", null, "id": "Help", "id": "About", "label": "About Adobe CVG Viewer..." ] The same message expressed as XML: <menu> <header>adobe SVG Viewer</header> <item action="open" id="open">open</item> <item action="opennew" id="opennew">open New</item> <separator/> <item action="zoomin" id="zoomin">zoom In</item> <item action="zoomout" id="zoomout">zoom Out</item> <item action="originalview" id="originalview">original View</item> <separator/> <item action="quality" id="quality">quality</item> <item action="pause" id="pause">pause</item> <item action="mute" id="mute">mute</item> <separator/> <item action="find" id="find">find...</item> <item action="findagain" id="findagain">find Again</item> <item action="copy" id="copy">copy</item> <item action="copyagain" id="copyagain">copy Again</item> <item action="copysvg" id="copysvg">copy SVG</item> http://json.org/example.html 9/10

<item action="viewsvg" id="viewsvg">view SVG</item> <item action="viewsource" id="viewsource">view Source</item> <item action="saveas" id="saveas">save As</item> <separator/> <item action="help" id="help">help</item> <item action="about" id="about">about Adobe CVG Viewer...</item> </menu> http://json.org/example.html 10/10