JSLT does not produce itself: empty objects
See original GitHub issueHi there,
Just getting started with JSLT so may have misunderstood something, but I would have expected this JSLT program to be self-producing:
{"foo": {}}
Instead the playground outputs an empty object:
{ }
The behavior seems to be that if a dictionary value is the empty object anywhere in the JSON document, then the key is omitted from the output. Is this expected?
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Does any one know how to create Empty Array In JSTL (JSP ...
The only way that I could think of is to use the useBean tag to create an ArrayList. Its add method returns a...
Read more >JSLT - Apache Camel
The Jslt component allows you to process a JSON messages using an JSLT expression. This can be ideal when doing JSON to JSON...
Read more >c:when trouble in jstl with a map object - Oracle Communities
I have the following line in my jsp file: <c:when test="${mybean.propertyMap.isEmpty}"> propertyMap is a TreeMap object.
Read more >5 JSTL Core IF Tag Examples in JSP - Tutorial - Javarevisited
Earlier we have seen examples of JSTL foreach tag and JSTL core set tag and ... If test expression results in false than...
Read more >JSP - Expression Language (EL) - Tutorialspoint
JSP EL allows you to create expressions both (a) arithmetic and (b) logical. ... you to access various attributes of Java Beans and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@larsga I haven’t got the time to test it yet. But from the quick look I had at the code changeset, looked fulfilling the requirement. Thank you very much.
I consider this solved, now that we have configurable filters for which values to leave out. Please reopen if you disagree.