Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Serialize Record to JSON

    I serialize a Record -ListGridRecord for that matter- to JSON using the following code
    Code:
    public void onRecordClick(RecordClickEvent event) {
    	String json=new JSONObject(event.getRecord().getJsObj()).toString();
    }
    It works great unless I have grouped the ListGrid by any column.
    I suppose it has to do with cyclic references created by grouping logic. If I create my own JSONObject.toString() method and omit the attributes which have underscore prefix, it works as expected.

    Is there a way to obtain a Record object without this underscored attributes from a grouped ListGrid?

    Thanks!
Working...
X