Skip to content

How do I access json? #221

Closed Answered by SoltauFintel
Deninc asked this question in Q&A
Discussion options

You must be logged in to vote

JXLS (or JEXL) has no JSON support. Here's a solution:

public class JsonTool {
   public String getJsonField(String json, String fieldName) {
   // implementation ...
}}
context.put("jsonTool", new JsonTool()); // add tool to JXLS context

// in Excel cell call method on that tool class instance:
${jsonTool.getJsonField(foo, 'bar')}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SoltauFintel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants