Corresponding JSON for the XML

i am currently using XML as the input , and i want it to be replaced by an JSON



Please do run the below code

i wanna same out put passing an json instead of XML.



So what are the changes i should make in the code and how to make the json



sample.xml



<?xml version="1.0"?>





Category

*

0-1

2







px











Business/Services

1

1

1





Stock Trading

1

1

1









Job Search

1

1

1











Finance/Banking

1

1

1











Business

1

1

1















example.html









    Loading from JSON

    

    

            

        

        

    

    

    

    

        

























Please do run the below code

>>i wanna same out put passing an json instead of XML.

There is no way to achieve the same effect with JSON. In current version JSON can’t be used for loading grid configuration, only for data loading.