Well .json is what i was doing but rows.as_list() and row.as_dict() will do the trick ;-)
On Aug 1, 11:56 pm, PanosJee <[email protected]> wrote: > thanx massimo > as for question one i think i use action.jsonbut i ll dig a little > bit deeper into that > > On Aug 1, 4:40 pm, mdipierro <[email protected]> wrote: > > > > > On Aug 1, 4:47 am, PanosJee <[email protected]> wrote: > > > > Hello everyone, i have 2 small questions regardingJSON. > > > > Question1 > > > I use @service.jsonto return aJSONresponse to an ajax call with > > > some rows but besides the data I also get some lambdas that are > > > attached to Rows. Is there any to get rid of those? > > > Don't use @service.json. Just call the action withhttp://....action.json > > > > Question 2 > > > Is it also possible to return rows injsonformat inside a normal html > > > response. > > > yes. > > > {{=XML(entries.json())}} > > > > For example i want to return a simple HTML page and output something > > > like this in my code > > > <script type='script/javascript'> > > > var entries = {{ entries }}; > > > </script> > > > > where entries is the result of a DAL query

