thanx massimo
as for question one i think i use action.json but 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 regarding JSON.
>
> > Question1
> > I use @service.json to return a JSON response 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 in json format 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

Reply via email to