Jolt中Map转List示例

测试网站:jolt-test

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
{
"operation": "shift",
"spec": {
"*": {
// #2 means go three levels up the tree (count from 0),
// and ask the "ratings" node, how many of it's
// children have been matched.
//
// This allows us to put the Name and the Value into
// the same object in the Ratings array.
"$": "[#2].key",
"@": "[#2].value"
}
}
}
]

本文地址: https://github.com/maxzhao-it/blog/post/4aca02f7/