phani
Thanks for the reply, but we woud like to filter some of the returned data and then return it as JSON. This means we would like to convert a XML node to JSON.
Currently we do something like:
<#assign cleanPost = {
"postLink": post.@view_href?string,
"postKudos": post.kudos.count?number,
"postPostTime": post.post_time.@view_time?string,
"postPostDate": post.post_time.@view_date?string,
"postTeaser": utils.html.stripper.from.gdata.strip(post.teaser?string)?json_string,
"postViews": post.views.count?string,
"postSubject": post.subject?json_string,
"postAuthor": post.author.login?json_string
}
/>
and then orginise our data in arrays and dictionaries and, finally, use this conversion macro to return the data.