You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Vojtech Knyttl (JIRA)" <ji...@apache.org> on 2017/05/12 14:43:04 UTC

[jira] [Created] (FREEMARKER-51) Maps/Lists transformation to JSON

Vojtech Knyttl created FREEMARKER-51:
----------------------------------------

             Summary: Maps/Lists transformation to JSON
                 Key: FREEMARKER-51
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-51
             Project: Apache Freemarker
          Issue Type: New Feature
            Reporter: Vojtech Knyttl


Quite often we are passing lists or maps to html data attrbutes, for instance:

<div data-details="{"foo":"bar"}">

It would be great to be able to generate these like this:

<div data-details="${map?json}">

Or

<div data-details="${list?json}">



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)