Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you're loading the data via <code>jQuery.ajax</code> or similar and it's being returned with the correct MIME type (or you tell <code>jQuery.ajax</code> that what you're getting back is JSON), then what you receive in the <code>success</code> callback will be a deserialized object (no longer JSON, but the objects that the JSON described). That being the case, you just access the properties of the object, e.g.:</p> <pre><code>$.ajax({ // ... success: function(data) { var fields = data.result[0][0].fields; } }); </code></pre> <p><code>data</code> being the variable pointing to the object, which has a <code>result</code> property that's an array with only one entry (so, entry <code>[0]</code>), which is itself another array with exactly one entry (so, entry <code>[0]</code> again), which is an object with a property called <code>fields</code>. Pictorially:</p> <pre><code>{ // &lt;== data "result": [ // &lt;== data.result [ // &lt;== data.result[0] { // &lt;== data.result[0][0] "type": "VOMesas.TMesas", "id": 1, "fields": { // &lt;== data.result[0][0].fields "FUsers": 1, "FEnclosing": 0, "FClientName": "", "FCode": 100, "FStatus": 1, "FTotalValue": 128.25 } } ] ] } </code></pre> <p>If you're retrieving the data some other way and it's still a string, you can deserialize it using <a href="http://api.jquery.com/jQuery.parseJSON" rel="nofollow"><code>jQuery.parseJSON</code></a>:</p> <pre><code>var data = $.parseJSON(str); </code></pre> <p>...and then do the above to access <code>fields</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload