Say i have below html template
<html>
<body>
<p>{{tested.object1}}</p>
<p>{{tested.object2}}</p>
<p>{{testedn.[0].object3}}</p>
</body>
Is there a way i can parse through it and generate required json payload/structure that can be used to feed this/such templates. In this case:
{ tested: { object1: '', object2: '' }, testedn: { '0': { object3: '' } } }
Most of the searches i did are leading to ways in which i can feed a already available json to such html templates. But nothing for other way around.
i have checked jMustache but couldnt find what i am looking for. Are there any leads on how i can achieve above in java?