title: How to pass attributes in chef-client without JSON file?
body: <p>I know we can pass node attributes in chef-{client/solo} with --json-attributes(-j) flag.
  This flag always expect a JSON file as input. Is their any method I can directly pass the attributes as JSON objects. </p>
  
  <p>I tried doing it. For eg:</p>
  
  <pre><code>chef-client -j {"attr":"value"} 
  </code></pre>
  
  <p>But it ends up with a failure message as: </p>
  
  <pre><code>FATAL: I cannot find {"attr":"value"}
  </code></pre>
  
  <p>As it expects a JSON file. 
  I need to pass JSON objects as in our env I can't create a json file. I don't want to use attributes/role/environment files as well. Is there any other way to pass the attributes ?</p>