
                            < M A T L A B (R) >
                  Copyright 1984-2016 The MathWorks, Inc.
                   R2016a (9.0.0.341360) 64-bit (glnxa64)
                             February 11, 2016

 
For online documentation, see http://www.mathworks.com/support
For product information, visit www.mathworks.com.
 

	Academic License

>> >> >> >> >> ===============================================
>> example1.json
{
	"data":{
		"firstName":"John",
		"lastName":"Smith",
		"age":25,
		"address":{
			"streetAddress":"21 2nd Street",
			"city":"New York",
			"state":"NY",
			"postalCode":"10021"
		},
		"phoneNumber":[
			{
				"type":"home",
				"number":"212 555-1234"
			},
			{
				"type":"fax",
				"number":"646 555-4567"
			}
		]
	}
}

{"data":{"firstName":"John","lastName":"Smith","age":25,"address":{"streetAddress":"21 2nd Street","city":"New York","state":"NY","postalCode":"10021"},"phoneNumber":[{"type":"home","number":"212 555-1234"},{"type":"fax","number":"646 555-4567"}]}}

===============================================
>> example2.json
{
	"data":{
		"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"
					}
				}
			}
		}
	}
}

{"data":{"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"}}}}}}

===============================================
>> example3.json
{
	"data":{
		"menu":{
			"id":"file",
			"value":"_&File",
			"popup":{
				"menuitem":[
					{
						"value":"_&New",
						"onclick":"CreateNewDoc(\"'\\\"Untitled\\\"'\")"
					},
					{
						"value":"_&Open",
						"onclick":"OpenDoc()"
					},
					{
						"value":"_&Close",
						"onclick":"CloseDoc()"
					}
				]
			}
		}
	}
}

{"data":{"menu":{"id":"file","value":"_&File","popup":{"menuitem":[{"value":"_&New","onclick":"CreateNewDoc(\"'\\\"Untitled\\\"'\")"},{"value":"_&Open","onclick":"OpenDoc()"},{"value":"_&Close","onclick":"CloseDoc()"}]}}}}

===============================================
>> example4.json
{
	"data":[
		{
			"sample":{
				"rho":1
			}
		},
		{
			"sample":{
				"rho":2
			}
		},
		[
				[
					[1,0]
				],
				[
					[1,1]
				],
				[
					[1,2]
				]
		],
		[
			"Paper",
			"Scissors",
			"Stone"
		],
		[
			"a",
			"b\\",
			"c\"",
			"d\\\"",
			"e\"[",
			"f\\\"[",
			"g[\\",
			"h[\\\""
		]
	]
}

{"data":[{"sample":{"rho":1}},{"sample":{"rho":2}},[[[1,0]],[[1,1]],[[1,2]]],["Paper","Scissors","Stone"],["a","b\\","c\"","d\\\"","e\"[","f\\\"[","g[\\","h[\\\""]]}

>> >> ===============================================
>> example1.json
{Udata{U	firstNameSUJohnUlastNameSUSmithUageUUaddress{U
streetAddressSU
21 2nd StreetUcitySUNew YorkUstateSUNYU
postalCodeSU10021}UphoneNumber[{UtypeSUhomeUnumberSU212 555-1234}{UtypeSUfaxUnumberSU646 555-4567}]}}
===============================================
>> example2.json
{Udata{Uglossary{UtitleSUexample glossaryUGlossDiv{UtitleCSU	GlossList{U
GlossEntry{UIDSUSGMLUSortAsSUSGMLU	GlossTermSU$Standard Generalized Markup LanguageUAcronymSUSGMLUAbbrevSU
ISO 8879:1986UGlossDef{UparaSUHA meta-markup language, used to create markup languages such as DocBook.UGlossSeeAlso[SUGMLSUXML]}UGlossSeeSUmarkup}}}}}}
===============================================
>> example3.json
{Udata{Umenu{UidSUfileUvalueSU_&FileUpopup{Umenuitem[{UvalueSU_&NewUonclickSUCreateNewDoc("'\"Untitled\"'")}{UvalueSU_&OpenUonclickSU	OpenDoc()}{UvalueSU_&CloseUonclickSU
CloseDoc()}]}}}}
===============================================
>> example4.json
{Udata[{Usample{UrhoU}}{Usample{UrhoU}}[[[$U#U [$U#U[$U#U]][SUPaperSUScissorsSUStone][CaSUb\SUc"SUd\"SUe"[SUf\"[SUg[\SUh[\"]]}
>> 