JSON Example: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * JSON =Example= <pre> { "kind": "ProjectList", "apiVersion": "v1", "metadata": { "selfLink": "/oapi/v1/projects" }, "items": [...") |
|||
Line 3: | Line 3: | ||
* [[JSON#Example|JSON]] | * [[JSON#Example|JSON]] | ||
= | =Examples= | ||
==Synthetic== | |||
<pre> | |||
{ | |||
"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" | |||
] | |||
} | |||
</pre> | |||
==OpenShit== | |||
<pre> | <pre> |
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" } } ] }