Search code examples
liferayfreemarkerliferay-7

Freemarker: converting web content to Json object


in a Freemarker template I want to convert the entire web content data to a JSON object string without manually write all the structure fields.Is this possible?

Thank you very much, Daniele.


Solution

  • You can get data in XML format by using the getContent method of JournalArticalLocalServiceUtil. but you could not get in JSON format directly.