title: Issue with updating field with embedded map in orientdb
body: <p>I have a javascript function in orientdb studio(2.1.12) where I am trying to update field called "node" with json whose property is of type embeddedMap in uiJson Document/Class.Find the code below:</p>
  
  <pre><code> var dt = db.query("SELECT * from uijson");
      childUijson = dt[0].getRecord();
       node = childUijson.field('node');
       print(node )
      db.command('update uiJson set node=' + node + 'where @rid=18:1');
      return node;
         /*Print in oriendb console{0=inputs[{s_type=URL,source=,v_type=java.l,value=http://www.gmail.com}], next={0=1}, label=Open Url, type=OPEN_URL, component=FireFox, screenshot=false,chained=false,flowchartElement=startElement_1,left=0.12737921}}
  */
  /*Return statement {
          "0": {
              "inputs": [
                  {
                      "s_type": "URL",
                      "source": "",
                      "v_type": "java.lang.String",
                      "value": "http://localhost:8090/Automaton/"
                  }
              ],
              "next": {
                  "0": "1"
              },
              "label": "Open Url",
              "type": "OPEN_URL",
              "component": "FireFox",
              "screenshot": false,
              "chained": false,
              "flowchartElement": "startElement_1",
              "top": 0.4410876,
              "left": 0.12737921
          }           
          "@type": "d",
          "@version": 0
      }*/
  </code></pre>
  
  <p>Print and return uses the same variable <strong>node</strong> .While printing in the console it prints using java object tostring() while returning it gives as Json.Please help me in updating a field with Json of type embedded map.</p>
  
  <pre><code>Error message {
      "errors": [
          {
              "code": 500,
              "reason": 500,
              "content": "com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #0: Error parsing query: \nupdate uiJson set node={0={inputs=[{s_type=URL, source=, v_type=java.lang.String, value=http://www.gmail.com/}], next={0=1}, label=Open Url, type=OPEN_URL, component=FireFox, screenshot=false, chained=false, flowchartElement=startElement_1, top=0.4410876, left=0.12737921}}where @rid=18:1\nEncountered \" &lt;INTEGER_LITERAL&gt; \"0 \"\" at line 1, column 25.\r\nWas expecting one of:\r\n    &lt;TO&gt; ...\r\n    &lt;VALUES&gt; ...\r\n    &lt;SET&gt; ...\r\n    &lt;ADD&gt; ...\r\n    &lt;PUT&gt; ...\r\n    &lt;MERGE&gt; ...\r\n    &lt;CONTENT&gt; ...\r\n    &lt;REMOVE&gt; ...\r\n    &lt;ORDER&gt; ...\r\n    &lt;GROUP&gt; ...\r\n    &lt;OFFSET&gt; ...\r\n    &lt;RECORD&gt; ...\r\n    &lt;LUCENE&gt; ...\r\n    &lt;NEAR&gt; ...\r\n    &lt;WITHIN&gt; ...\r\n    &lt;EXCEPTION&gt; ...\r\n    &lt;FIND&gt; ...\r\n    &lt;REFERENCES&gt; ...\r\n    &lt;RECORD_ATTRIBUTE&gt; ...\r\n    &lt;CHARACTER_LITERAL&gt; ...\r\n    &lt;STRING_LITERAL&gt; ...\r\n    \"}\" ...\r\n    &lt;IN&gt; ...\r\n    &lt;KEY&gt; ...\r\n    &lt;IDENTIFIER&gt; ...\r\n    &lt;QUOTED_IDENTIFIER&gt; ...\r\n    "
          }
      ]
  }
  </code></pre>