title: create nested JSON object in php?
body: <p>I don't work with php much and I'm a little fuzzy on object creation.  I need to make a webservice request sending json and I think I have that part covered.  Before I can submit the data I need to create a nested object.  I was assuming this would be trivial based on my experience with ecma based scripting languages, but I'm finding the syntax to be difficult to navigate.  The object I want to create is below.</p>
  
  <pre><code>{ "client": {
      "build": "1.0",
      "name": "xxxxxx",
      "version": "1.0"
      },
      "protocolVersion": 4,
      "data": {
          "distributorId": "xxxx",
          "distributorPin": "xxxx",
          "locale": "en-US"
      }
  }
  </code></pre>
  
  <p>I've seen a lot of examples of flat objects, but I haven't found a minimal example for a nested object yet.  What would be the php syntax for the object above?  Is this an unusual thing to do in php?</p>