How do I print the freemarker object as string?
Hey guys,
Is there a equivalent of JavaScript's console.log or JSON stringify method when I am building components?
For example -- I got answer from one of the forums that the rest call to kudos/authors/leaderboard returns this XML http://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&leaf-id=Category.kudos.authors.leaderboard#Category.kudos.authors.leaderboard.
However, it would have been much easier if I could just do a toString() and see the entire response itself. Is there anything that does that?
Hi,
if it's about debugging rest calls, you can use the "restd" context object (and change to rest for the final code).
You can find documentation and examples here: http://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=freemarker -> Context Objects -> restd