Lars Marius Garshol
Lars Marius Garshol
Using `+` with two objects merges the two objects into one. Try it out in the playground and you'll see.
Only as parameters to the functions declared in the imported JSLT, I'm afraid. Could you explain the use case?
Thank you, but this is not a use case. This is a full example of trying to do this, but it gives no indication of _why_ you might want to...
I guess the use case here is that instead of the usual model of `transform(json) => result` you have a case where the model is transform(json, db state) => result`?...
> Can we insert a javascript code in a JSLT field? In that case we'd need to extend JSLT with a JavaScript interpreter running inside the JVM that could somehow...
Did you follow the link to the documentation in the first comment I made?
You get problems because this `[ "count": 50,` isn't correct array syntax.
> the main problem is that from the outer loop cannot be passed as a constant to the inner loop( Have you tried defining a variable in the outer loop...
Please make new issues for new problems. This: > expected output message: > {"date": 29.02.2024} Is not JSON, so there is no way JSLT can produce it. JSON doesn't have...
Yes, sorry, @catull, but this is a problem with the JSLT grammar. It has nothing to do with function bodies. The question is how to solve it without breaking backward...