Validating Template Against JSON
sjkelleyjr <[email protected]> Fri, 30 Nov 2018 14:25:25 -0600 (CST)
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to validate a template given a JSON structure. By this I mean, given a template with fields to read from a JSON file, and the JSON file, I'd like to ensure all of the fields expected in the template are present in the JSON file. A programmatic version of this would be perfect (with an error message, rather than an empty template if the JSON property doesn't exist): https://try.freemarker.apache.org/ Is there an existing solution to this, or is this something I'll have to write myself? If it is something I'll have to write myself, and suggestions on how to proceed with this task? -- Sent from: http://freemarker.624813.n4.nabble.com/freemarker-user-f624814.html