Hi, We are also converting HTML file into JSON object. Here is the sample:
({"result" : "<html><body><form name='abc'><input type="button" value='Submit'/></form></body></html>"}); Is it possible? Regards, Baby On Mar 7, 1:17 pm, sure <sure.2...@gmail.com> wrote: > Hi james, > Thanks for your quick reply. Here is my code. > > HTML CODE > ------------------ > <div id="liquidlayout" class="liquidlayout"> > <div class="top"> > <div id="topleft" class="topgroup">TopLeft</div> > <div id="topright" class="topgroup">TopRight</div> > </div> > <div class="bottom"> > <div id="btmleft" class="btmgroup">BottomLeft</div> > <div id="btmmiddle" class="btmgroup">BottomMiddle</div> > <div id="btmright" class="btmgroup">BottomRight</div> > </div> > </div> > > Required JSON Look like > ---------------------------------------- > { > attributes:{afid:"affiliateid",chid:"channelid",layoutid:"layoutid"}, > containers:[ > { > > data:{position:"topleft1",id:"divid",style:"inline-style- > data",class:"classname",width:"width",height:"height"}, > contains:{ > widgets:[ > {widgetid:"id",others:"other > details about widget"}, > {widgetid:"id",others:"other > details about widget"} > ] > } > }, > { > data: > {position:"topleft2",id:"divid",class:"classname",style:"inline-style- > data",width:"width",height:"height"}, > contains:{ > widgets:[ > {widgetid:"id",others:"other > details about widget"}, > {widgetid:"id",others:"other > details about widget"} > ] > } > } > > ] > > } > > Please tell me, how to do this. If there is any plug in related to > this, please let me know. > > with Regards > sure. > > On Mar 7, 11:30 am, James <james.gp....@gmail.com> wrote: > > > That depends. Provide more specific information. How would the initial > > HTML and the final JSON look like? > > > On Mar 6, 6:42 pm, sure <sure.2...@gmail.com> wrote: > > > > Hi all, > > > I am not a expert in jquery. Please let me know , Is it > > > possible to covert html data in json format. If any one knows how to > > > do this, please let me know . > > > > with Regards > > > sure.