dummy-json
dummy-json copied to clipboard
Is there any method to validate the template.
Is there any method to validate the template before converting to JSON.
Any help :)
Not that I'm aware of, I'm afraid. The template is not valid JSON so it won't pass a JSON validator, what you need is a Handlebars validator. I did a quick search and couldn't find one. I'll leave this issue open in case anyone else has a good idea.
@webroo I too will try something...for time being what I have done is I am validating the generated JSON data and based on that I prompting the user if there is an error in the template.