I serialize a Record -ListGridRecord for that matter- to JSON using the following code
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!
Code:
public void onRecordClick(RecordClickEvent event) { String json=new JSONObject(event.getRecord().getJsObj()).toString(); }
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!