79121422

Date: 2024-10-24 10:16:54
Score: 0.5
Natty:
Report link

You have to use $ to access the parts value, like this:

String jsltExpression = "let parts = split(.id, \"/\") { \"result\": $parts[1] + $parts[3] }";

You can try jslt expression in the playground (https://www.garshol.priv.no/jslt-demo), it gives you more feedback on errors.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Francesco Poli