title: Does Kubernetes take JSON format as input file to create configmap and secret?
body: <p>I have an existing configuration file in JSON format, something like below</p>
  
  <pre><code>{
      "maxThreadCount": 10,
      "trackerConfigs": [{
              "url": "https://example1.com/",
              "username": "username",
              "password": "password",
              "defaultLimit": 1
          },
          {
              "url": "https://example2.com/",
              "username": "username",
              "password": "password",
              "defaultLimit": 1
          }
      ],
      "repoConfigs": [{
          "url": "https://github.com/",
          "username": "username",
          "password": "password",
          "type": "GITHUB"
      }],
      "streamConfigs": [{
          "url": "https://example.com/master.json",
          "type": "JSON"
      }]
  }
  </code></pre>
  
  <p>I understand that I am allowed to pass key/value pair properties file with --from-file option for configmap and secret creation. </p>
  
  <p>But How about JSON formatted file ? Does Kubernetes take JSON format file as input file to create configmap and secret as well? </p>
  
  <pre><code>$ kubectl create configmap demo-configmap --from-file=example.json
  </code></pre>
  
  <p>If I run this command, it said configmap/demo-configmap created. But how can I refer this configmap values in other pod ? </p>