problem loadXMLString(json)

Hello, I try to paint a grid with json variable and gives me the error “type-error can not get property ‘replace’”. LoadXMLString use. But if I put the chain by hand no problem.

Please, try to use the parse() method:
docs.dhtmlx.com/api__dhtmlxgrid_parse.html