Forum Discussion

gstelang's avatar
gstelang
Mentor
9 years ago

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? 

3 Replies