本页展示了一些用 JSON(JavaScript Object Notation) 格式化的消息.
{
"glossary": {
}
"title": "example glossary",
"GlossDiv": {
}
"GlossDiv": {
"title": "S",
"GlossList": {
}
"GlossList": {
"GlossEntry": {
}
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"GlossSee": "markup"
}
"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": [
},"GlossSeeAlso": [
"GML",
"XML"
]
"XML"
"GlossSee": "markup"
同样的内容用XML来表示:
<!DOCTYPE glossary PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<glossary>
<glossary>
<title>example glossary</title>
<GlossDiv>
</glossary>
<GlossDiv>
<title>S</title>
<GlossList>
</GlossDiv>
<GlossList>
<GlossEntry ID="SGML" SortAs="SGML">
</GlossList>
<GlossTerm>Standard Generalized Markup Language</GlossTerm>
<Acronym>SGML</Acronym>
<Abbrev>ISO 8879:1986</Abbrev>
<GlossDef>
<GlossSee OtherTerm="markup" />
</GlossEntry>
<Acronym>SGML</Acronym>
<Abbrev>ISO 8879:1986</Abbrev>
<GlossDef>
<para>A meta-markup language, used to create markup
<GlossSeeAlso OtherTerm="GML" />
<GlossSeeAlso OtherTerm="XML" />
</GlossDef>
languages such as DocBook.
</para><GlossSeeAlso OtherTerm="GML" />
<GlossSeeAlso OtherTerm="XML" />
<GlossSee OtherTerm="markup" />
{
"menu": {
}
"id": "file",
"value": "File",
"popup": {
}
"value": "File",
"popup": {
"menuitem": [
}
{
{
{
]
"value": "New",
"onclick": "CreateNewDoc()"
},"onclick": "CreateNewDoc()"
{
"value": "Open",
"onclick": "OpenDoc()"
},"onclick": "OpenDoc()"
{
"value": "Close",
"onclick": "CloseDoc()"
}
"onclick": "CloseDoc()"
同样的内容用XML来表示:
<menu id="file" value="File">
<popup>
</menu>
<menuitem value="New" onclick="CreateNewDoc()" />
<menuitem value="Open" onclick="OpenDoc()" />
<menuitem value="Close" onclick="CloseDoc()" />
</popup>
<menuitem value="Open" onclick="OpenDoc()" />
<menuitem value="Close" onclick="CloseDoc()" />
{
"widget": {
}
"debug": "on",
"window": {
"image": {
"text": {
}
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500,
"height": 500
},"name": "main_window",
"width": 500,
"height": 500
"image": {
"src": "Images/Sun.png",
"name": "sun1",
"hOffset": 250,
"vOffset": 250,
"alignment": "center"
},"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;"
}
"size": 36,
"style": "bold",
"name": "text1",
"hOffset": 250,
"vOffset": 100,
"alignment": "center",
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
同样的内容用XML来表示:
<widget>
<debug>on</debug>
<window title="Sample Konfabulator Widget">
<image src="Images/Sun.png" name="sun1">
<text data="Click Here" size="36" style="bold">
</widget>
<window title="Sample Konfabulator Widget">
<name>main_window</name>
<width>500</width>
<height>500</height>
</window><width>500</width>
<height>500</height>
<image src="Images/Sun.png" name="sun1">
<hOffset>250</hOffset>
<vOffset>250</vOffset>
<alignment>center</alignment>
</image><vOffset>250</vOffset>
<alignment>center</alignment>
<text data="Click Here" size="36" style="bold">
<name>text1</name>
<hOffset>250</hOffset>
<vOffset>100</vOffset>
<alignment>center</alignment>
<onMouseUp>
</text>
<hOffset>250</hOffset>
<vOffset>100</vOffset>
<alignment>center</alignment>
<onMouseUp>
sun1.opacity = (sun1.opacity / 100) * 90;
</onMouseUp>
{
"web-app": {
}
"servlet": [
"servlet-mapping": {
"taglib": {
}
{
{
{
{
{
],
"servlet-name": "cofaxCDS",
"servlet-class": "org.cofax.cds.CDSServlet",
"init-param": {
},"servlet-class": "org.cofax.cds.CDSServlet",
"init-param": {
"configGlossary:installationAt": "Philadelphia, PA",
"configGlossary:adminEmail": "[email protected]",
"configGlossary:poweredBy": "Cofax",
"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
}
"configGlossary:adminEmail": "[email protected]",
"configGlossary:poweredBy": "Cofax",
"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": {
},"servlet-class": "org.cofax.cds.EmailServlet",
"init-param": {
"mailHost": "mail1",
"mailHostOverride": "mail2"
}
"mailHostOverride": "mail2"
{
"servlet-name": "cofaxAdmin",
"servlet-class": "org.cofax.cds.AdminServlet"
},"servlet-class": "org.cofax.cds.AdminServlet"
{
"servlet-name": "fileServlet",
"servlet-class": "org.cofax.cds.FileServlet"
},"servlet-class": "org.cofax.cds.FileServlet"
{
"servlet-name": "cofaxTools",
"servlet-class": "org.cofax.cms.CofaxToolsServlet",
"init-param": {
}
"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
}
"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/*",
"cofaxTools": "/tools/*"
},"cofaxEmail": "/cofaxutil/aemail/*",
"cofaxAdmin": "/admin/*",
"fileServlet": "/static/*",
"cofaxTools": "/tools/*"
"taglib": {
"taglib-uri": "cofax.tld",
"taglib-location": "/WEB-INF/tlds/cofax.tld"
}
"taglib-location": "/WEB-INF/tlds/cofax.tld"
同样的内容用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>
<!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>
<servlet>
<servlet>
<servlet>
<servlet>
<servlet-mapping>
<servlet-mapping>
<servlet-mapping>
<servlet-mapping>
<servlet-mapping>
<taglib>
</web-app>
<servlet-name>
<servlet-class>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
</servlet>
cofaxCDS
</servlet-name><servlet-class>
org.cofax.cds.CDSServlet
</servlet-class><init-param>
<param-name>configGlossary:installationAt</param-name>
<param-value>Philadelphia, PA</param-value>
</init-param><param-value>Philadelphia, PA</param-value>
<init-param>
<param-name>configGlossary:adminEmail</param-name>
<param-value>[email protected]</param-value>
</init-param><param-value>[email protected]</param-value>
<init-param>
<param-name>configGlossary:poweredBy</param-name>
<param-value>Cofax</param-value>
</init-param><param-value>Cofax</param-value>
<init-param>
<param-name>configGlossary:poweredByIcon</param-name>
<param-value>/images/cofax.gif</param-value>
</init-param><param-value>/images/cofax.gif</param-value>
<init-param>
<param-name>configGlossary:staticPath</param-name>
<param-value>/content/static</param-value>
</init-param><param-value>/content/static</param-value>
<init-param>
<param-name>templateProcessorClass</param-name>
<param-value>org.cofax.WysiwygTemplate</param-value>
</init-param><param-value>org.cofax.WysiwygTemplate</param-value>
<init-param>
<param-name>templateLoaderClass</param-name>
<param-value>org.cofax.FilesTemplateLoader</param-value>
</init-param><param-value>org.cofax.FilesTemplateLoader</param-value>
<init-param>
<param-name>templatePath</param-name>
<param-value>templates</param-value>
</init-param><param-value>templates</param-value>
<init-param>
<param-name>templateOverridePath</param-name>
<param-value></param-value>
</init-param><param-value></param-value>
<init-param>
<param-name>defaultListTemplate</param-name>
<param-value>listTemplate.htm</param-value>
</init-param><param-value>listTemplate.htm</param-value>
<init-param>
<param-name>defaultFileTemplate</param-name>
<param-value>articleTemplate.htm</param-value>
</init-param><param-value>articleTemplate.htm</param-value>
<init-param>
<param-name>useJSP</param-name>
<param-value>false</param-value>
</init-param><param-value>false</param-value>
<init-param>
<param-name>jspListTemplate</param-name>
<param-value>listTemplate.jsp</param-value>
</init-param><param-value>listTemplate.jsp</param-value>
<init-param>
<param-name>jspFileTemplate</param-name>
<param-value>articleTemplate.jsp</param-value>
</init-param><param-value>articleTemplate.jsp</param-value>
<init-param>
<param-name>cachePackageTagsTrack</param-name>
<param-value>200</param-value>
</init-param><param-value>200</param-value>
<init-param>
<param-name>cachePackageTagsStore</param-name>
<param-value>200</param-value>
</init-param><param-value>200</param-value>
<init-param>
<param-name>cachePackageTagsRefresh</param-name>
<param-value>60</param-value>
</init-param><param-value>60</param-value>
<init-param>
<param-name>cacheTemplatesTrack</param-name>
<param-value>100</param-value>
</init-param><param-value>100</param-value>
<init-param>
<param-name>cacheTemplatesStore</param-name>
<param-value>50</param-value>
</init-param><param-value>50</param-value>
<init-param>
<param-name>cacheTemplatesRefresh</param-name>
<param-value>15</param-value>
</init-param><param-value>15</param-value>
<init-param>
<param-name>cachePagesTrack</param-name>
<param-value>200</param-value>
</init-param><param-value>200</param-value>
<init-param>
<param-name>cachePagesStore</param-name>
<param-value>100</param-value>
</init-param><param-value>100</param-value>
<init-param>
<param-name>cachePagesRefresh</param-name>
<param-value>10</param-value>
</init-param><param-value>10</param-value>
<init-param>
<param-name>cachePagesDirtyRead</param-name>
<param-value>10</param-value>
</init-param><param-value>10</param-value>
<init-param>
<param-name>searchEngineListTemplate</param-name>
<param-value>forSearchEnginesList.htm</param-value>
</init-param><param-value>forSearchEnginesList.htm</param-value>
<init-param>
<param-name>searchEngineFileTemplate</param-name>
<param-value>forSearchEngines.htm</param-value>
</init-param><param-value>forSearchEngines.htm</param-value>
<init-param>
<param-name>searchEngineRobotsDb</param-name>
<param-value>WEB-INF/robots.db</param-value>
</init-param><param-value>WEB-INF/robots.db</param-value>
<init-param>
<param-name>useDataStore</param-name>
<param-value>true</param-value>
</init-param><param-value>true</param-value>
<init-param>
<param-name>dataStoreClass</param-name>
<param-value>org.cofax.SqlDataStore</param-value>
</init-param><param-value>org.cofax.SqlDataStore</param-value>
<init-param>
<param-name>redirectionClass</param-name>
<param-value>org.cofax.SqlRedirection</param-value>
</init-param><param-value>org.cofax.SqlRedirection</param-value>
<init-param>
<param-name>dataStoreName</param-name>
<param-value>cofax</param-value>
</init-param><param-value>cofax</param-value>
<init-param>
<param-name>dataStoreDriver</param-name>
<param-value>com.microsoft.jdbc.sqlserver.SQLServerDriver</param-value>
</init-param><param-value>com.microsoft.jdbc.sqlserver.SQLServerDriver</param-value>
<init-param>
<param-name>dataStoreUrl</param-name>
<param-value>jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon</param-value>
</init-param><param-value>jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon</param-value>
<init-param>
<param-name>dataStoreUser</param-name>
<param-value>sa</param-value>
</init-param><param-value>sa</param-value>
<init-param>
<param-name>dataStorePassword</param-name>
<param-value></param-value>
</init-param><param-value></param-value>
<init-param>
<param-name>dataStoreTestQuery</param-name>
<param-value>SET NOCOUNT ON;select test='test';</param-value>
</init-param><param-value>SET NOCOUNT ON;select test='test';</param-value>
<init-param>
<param-name>dataStoreLogFile</param-name>
<param-value>/usr/local/tomcat/logs/datastore.log</param-value>
</init-param><param-value>/usr/local/tomcat/logs/datastore.log</param-value>
<init-param>
<param-name>dataStoreInitConns</param-name>
<param-value>10</param-value>
</init-param><param-value>10</param-value>
<init-param>
<param-name>dataStoreMaxConns</param-name>
<param-value>100</param-value>
</init-param><param-value>100</param-value>
<init-param>
<param-name>dataStoreConnUsageLimit</param-name>
<param-value>100</param-value>
</init-param><param-value>100</param-value>
<init-param>
<param-name>dataStoreLogLevel</param-name>
<param-value>debug</param-value>
</init-param><param-value>debug</param-value>
<init-param>
<param-name>maxUrlLength</param-name>
<param-value>500</param-value>
</init-param>
<param-value>500</param-value>
<servlet>
<servlet-name>
<servlet-class>
<init-param>
<init-param>
</servlet>
cofaxEmail
</servlet-name><servlet-class>
org.cofax.cds.EmailServlet
</servlet-class><init-param>
<param-name>mailHost</param-name>
<param-value>mail1</param-value>
</init-param><param-value>mail1</param-value>
<init-param>
<param-name>mailHostOverride</param-name>
<param-value>mail2</param-value>
</init-param>
<param-value>mail2</param-value>
<servlet>
<servlet-name>
<servlet-class>
</servlet>
cofaxAdmin
</servlet-name><servlet-class>
org.cofax.cds.AdminServlet
</servlet-class>
<servlet>
<servlet-name>
<servlet-class>
</servlet>
fileServlet
</servlet-name><servlet-class>
org.cofax.cds.FileServlet
</servlet-class>
<servlet>
<servlet-name>
<servlet-class>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
<init-param>
</servlet>
cofaxTools
</servlet-name><servlet-class>
org.cofax.cms.CofaxToolsServlet
</servlet-class><init-param>
<param-name>templatePath</param-name>
<param-value>toolstemplates/</param-value>
</init-param><param-value>toolstemplates/</param-value>
<init-param>
<param-name>log</param-name>
<param-value>1</param-value>
</init-param><param-value>1</param-value>
<init-param>
<param-name>logLocation</param-name>
<param-value>/usr/local/tomcat/logs/CofaxTools.log</param-value>
</init-param><param-value>/usr/local/tomcat/logs/CofaxTools.log</param-value>
<init-param>
<param-name>logMaxSize</param-name>
<param-value></param-value>
</init-param><param-value></param-value>
<init-param>
<param-name>dataLog</param-name>
<param-value>1</param-value>
</init-param><param-value>1</param-value>
<init-param>
<param-name>dataLogLocation</param-name>
<param-value>/usr/local/tomcat/logs/dataLog.log</param-value>
</init-param><param-value>/usr/local/tomcat/logs/dataLog.log</param-value>
<init-param>
<param-name>dataLogMaxSize</param-name>
<param-value></param-value>
</init-param><param-value></param-value>
<init-param>
<param-name>removePageCache</param-name>
<param-value>/content/admin/remove?cache=pages&id=</param-value>
</init-param><param-value>/content/admin/remove?cache=pages&id=</param-value>
<init-param>
<param-name>removeTemplateCache</param-name>
<param-value>/content/admin/remove?cache=templates&id=</param-value>
</init-param><param-value>/content/admin/remove?cache=templates&id=</param-value>
<init-param>
<param-name>fileTransferFolder</param-name>
<param-value>/usr/local/tomcat/webapps/content/fileTransferFolder</param-value>
</init-param><param-value>/usr/local/tomcat/webapps/content/fileTransferFolder</param-value>
<init-param>
<param-name>lookInContext</param-name>
<param-value>1</param-value>
</init-param><param-value>1</param-value>
<init-param>
<param-name>adminGroupID</param-name>
<param-value>4</param-value>
</init-param><param-value>4</param-value>
<init-param>
<param-name>betaServer</param-name>
<param-value>true</param-value>
</init-param>
<param-value>true</param-value>
<servlet-mapping>
<servlet-name>
<url-pattern>
</servlet-mapping>
cofaxCDS
</servlet-name><url-pattern>
/
</url-pattern>
<servlet-mapping>
<servlet-name>
<url-pattern>
</servlet-mapping>
cofaxEmail
</servlet-name><url-pattern>
/cofaxutil/aemail/*
</url-pattern>
<servlet-mapping>
<servlet-name>
<url-pattern>
</servlet-mapping>
cofaxAdmin
</servlet-name><url-pattern>
/admin/*
</url-pattern>
<servlet-mapping>
<servlet-name>
<url-pattern>
</servlet-mapping>
fileServlet
</servlet-name><url-pattern>
/static/*
</url-pattern>
<servlet-mapping>
<servlet-name>
<url-pattern>
</servlet-mapping>
cofaxTools
</servlet-name><url-pattern>
/tools/*
</url-pattern>
<taglib>
<taglib-uri>cofax.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/cofax.tld</taglib-location>
</taglib>
<taglib-location>/WEB-INF/tlds/cofax.tld</taglib-location>
action和label属性仅仅在它们跟id值不一样的时候才显示.
{
"menu": {
}
"header": "SVG Viewer",
"items": [
}
"items": [
{
{
null,
{
{
{
null,
{
{
{
null,
{
{
{
{
{
{
{
{
null,
{
{
]
"id": "Open"
},{
"id": "OpenNew",
"label": "Open New"
},"label": "Open New"
null,
{
"id": "ZoomIn",
"label": "Zoom In"
},"label": "Zoom In"
{
"id": "ZoomOut",
"label": "Zoom Out"
},"label": "Zoom Out"
{
"id": "OriginalView",
"label": "Original View"
},"label": "Original View"
null,
{
"id": "Quality"
},{
"id": "Pause"
},{
"id": "Mute"
},null,
{
"id": "Find",
"label": "Find..."
},"label": "Find..."
{
"id": "FindAgain",
"label": "Find Again"
},"label": "Find Again"
{
"id": "Copy"
},{
"id": "CopyAgain",
"label": "Copy Again"
},"label": "Copy Again"
{
"id": "CopySVG",
"label": "Copy SVG"
},"label": "Copy SVG"
{
"id": "ViewSVG",
"label": "View SVG"
},"label": "View SVG"
{
"id": "ViewSource",
"label": "View Source"
},"label": "View Source"
{
"id": "SaveAs",
"label": "Save As"
},"label": "Save As"
null,
{
"id": "Help"
},{
"id": "About",
"label": "About Adobe CVG Viewer..."
}
"label": "About Adobe CVG Viewer..."
同样的内容用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>
<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>
<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>
<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>
原文: JSON Example
地址: http://www.json.org/example.html
地址: http://www.json.org/example.html