JSON Example: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
{ | { | ||
"null-example": null, | "null-example": null, | ||
"boolean-true-example": true, | "boolean-true-example": true, | ||
"boolean-false-example": false, | "boolean-false-example": false, | ||
"string-example": "some string", | "string-example": "some string", | ||
"int-example": 10, | "int-example": 10, | ||
"float-example": 10.1, | "float-example": 10.1, | ||
"object-example": { | |||
"object-example": { | |||
"object-element": "some other string" | "object-element": "some other string" | ||
}, | }, | ||
"array-example" : [ | |||
"array-example" : [ | |||
"array-element-1", | "array-element-1", | ||
"array-element-2" | "array-element-2" |
Latest revision as of 22:04, 25 February 2017
Internal
Examples
Synthetic
{ "null-example": null, "boolean-true-example": true, "boolean-false-example": false, "string-example": "some string", "int-example": 10, "float-example": 10.1, "object-example": { "object-element": "some other string" }, "array-example" : [ "array-element-1", "array-element-2" ] }
OpenShit
{ "kind": "ProjectList", "apiVersion": "v1", "metadata": { "selfLink": "/oapi/v1/projects" }, "items": [ { "metadata": { "name": "test1", "selfLink": "/oapi/v1/projects/test1", "uid": "3f062dcd-6250-11e5-bc78-08002733d9bd", "resourceVersion": "109740", "creationTimestamp": "2015-09-24T00:07:29Z", "annotations": { "openshift.io/description": "The first test project", "openshift.io/display-name": "Test1 Project", "openshift.io/sa.scc.mcs": "s0:c6,c0", "openshift.io/sa.scc.uid-range": "1000030000/10000" } }, "spec": { "finalizers": [ "openshift.io/origin", "kubernetes" ] }, "status": { "phase": "Active" } } ] }