You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Dániel Dékány (Jira)" <ji...@apache.org> on 2021/02/06 10:17:00 UTC
[jira] [Closed] (FREEMARKER-143) Parsing complex json
[ https://issues.apache.org/jira/browse/FREEMARKER-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dániel Dékány closed FREEMARKER-143.
------------------------------------
Resolution: Abandoned
> Parsing complex json
> --------------------
>
> Key: FREEMARKER-143
> URL: https://issues.apache.org/jira/browse/FREEMARKER-143
> Project: Apache Freemarker
> Issue Type: Wish
> Reporter: Rupa
> Priority: Major
>
> Hi Team,
> Is there any way to parse or extract complex json and print the same in freemarker.
> We have the below json structure, we are trying to print child1. so when we print the value of child1 as ${json.parent.children.child1} we are getting the error
> "Only elements with no child elements can be processed as text."
> Could you please suggest some other workaround where we can print the complex json values.
>
> For Ex: Consider the below json
> parent :{
> children:{
> child1:{
> "a": "value",
> "b" : {
> "c" : "value",
> "d" : "value"
> } ,
> "e" : "value"
> }
> }
> }
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)