JSLT demo playground
Here you can play with
JSLT
transforms. Please
report any issues
.
Result
Transform result will appear here
JSLT
let idparts = split(.id, "-") let xxx = [for ($idparts) "x" * size(.)] { "id" : join($xxx, "-"), "type" : "Anonymized-View", * : . }
Input
{ "schema" : "http://schemas.schibsted.io/thing/pulse-simple.json#1.json", "id" : "w23q7ca1-8729-24923-922b-1c0517ddffjf1", "published" : "2017-05-04T09:13:29+02:00", "type" : "View", "environmentId" : "urn:schibsted.com:environment:uuid", "url" : "http://www.aftenposten.no/" }