title: ace-editor get text between braces
body: <p>How can ace-editor get the value of code which is between braces like:</p>
  
  <pre><code> {
          "name":"Product",
          "properties":
          {
                  "id":
                  {
                          "type":"number",
                          "description":"Product identifier",
                          "required":true
                  },
                  "name":
                  {
                          "description":"Name of the product",
                          "type":"string",
                          "required":true
                  }
          }
  }
  </code></pre>
  
  <p>if cursor is on: <code>"type":"number"</code></p>
  
  <p>Then it should return</p>
  
  <pre><code>                {
                          "type":"number",
                          "description":"Product identifier",
                          "required":true
                  }
  </code></pre>