JSON Example

From NovaOrdis Knowledge Base
Revision as of 22:04, 25 February 2017 by Ovidiu (talk | contribs) (→‎Synthetic)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"
      }
    }
  ]
}