title: How to pass json content to python subprocess or json file
body: <p>I am using python subprocess.popen to run openshift command.</p>
  
  <p>My subprocess.popen looks like:</p>
  
  <pre><code>subprocess.Popen(['oc','create','-n',project,'-f','resource.json'],stdout=subprocess.PIPE,stderr=subprocess.PIPE,stdin=subprocess.PIPE)
  </code></pre>
  
  <p>I am trying to pass json file like this. But it's not creating resource that I am trying to create.
  Do anyone know any other way I can pass json content to it.</p>