Skip to content

Instantly share code, notes, and snippets.

@jchannon
Created September 19, 2011 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchannon/1226807 to your computer and use it in GitHub Desktop.
Save jchannon/1226807 to your computer and use it in GitHub Desktop.
Dynamic JSON
{
"Code": "6150",
"xs:schema": {
"@": {
"id": "NewDataSet",
"targetNamespace": "SECURITY_GROUPS",
"xmlns:mstns": "SECURITY_GROUPS",
"xmlns": "SECURITY_GROUPS",
"xmlns:xs": "http://www.w3.org/2001/XMLSchema",
"xmlns:msdata": "urn:schemas-microsoft-com:xml-msdata",
"attributeFormDefault": "qualified",
"elementFormDefault": "qualified"
},
"xs:element": {
"@": {
"name": "NewDataSet",
"msdata:IsDataSet": "true",
"msdata:UseCurrentLocale": "true"
},
"xs:complexType": {
"xs:choice": {
"@": {
"minOccurs": "0",
"maxOccurs": "unbounded"
},
"xs:element": {
"@": {
"name": "SECURITY_GROUPS"
},
"xs:complexType": {
"xs:sequence": {
"xs:element": [
{
"@": {
"name": "GROUP_ID",
"type": "xs:decimal"
}
},
{
"@": {
"name": "NAME",
"minOccurs": "0"
},
"xs:simpleType": {
"xs:restriction": {
"@": {
"base": "xs:string"
},
"xs:maxLength": {
"@": {
"value": "50"
}
}
}
}
},
{
"@": {
"name": "DESCRIPTION",
"minOccurs": "0"
},
"xs:simpleType": {
"xs:restriction": {
"@": {
"base": "xs:string"
},
"xs:maxLength": {
"@": {
"value": "300"
}
}
}
}
}
]
}
}
}
}
},
"xs:unique": {
"@": {
"name": "Constraint1",
"msdata:PrimaryKey": "true"
},
"xs:selector": {
"@": {
"xpath": ".//mstns:SECURITY_GROUPS"
}
},
"xs:field": {
"@": {
"xpath": "mstns:GROUP_ID"
}
}
}
}
},
"NewDataSet": {
"@": {
"xmlns": "SECURITY_GROUPS"
},
"SECURITY_GROUPS": [
{
"GROUP_ID": "100",
"NAME": "Administrators",
"DESCRIPTION": "Access to all aspects of system"
},
{
"GROUP_ID": "101",
"NAME": "Operators",
"DESCRIPTION": "users of device"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment