title: Using HTTP API and json to insert an embedded type in OrientDB
body: <p>I have defined a class 'Box' in OrientDB using the schema manager in studio.  'Box' has only one element - an embedded class 'Label'.  </p>
  
  <p>When I use this json to create a label</p>
  
  <pre><code> {
      "@class": "Label",
          "boxUUID": "azxc",
          "validFrom": 0,
          "validTo": 100
  }
  </code></pre>
  
  <p>in a POST command to 'Label', the insert  works.</p>
  
  <p>But when I use it as below in a POST to 'Box' it fails.</p>
  
  <pre><code>{
      "@class": "Box",
      "Label": {
          "boxUUID": "azxc",
          "validFrom": 0,
          "validTo": 100
      }
  }
  </code></pre>
  
  <p>With the following error message:</p>
  
  <pre><code>{
    "errors": [
      {
        "reason": 500,
        "content": "com.orientechnologies.orient.core.exception.OValidationException: The field 'Box.Label' has been declared as EMBEDDED but an incompatible type is used. Value: {boxUUID=azxc, validFrom=0, validTo=100}",
        "code": 500
      }
    ]
  }
  </code></pre>
  
  <p>What is the correct format of the json for a class with an embedded class in OrientDB over the HTTP API?</p>