hi there,
Could anyone help to show me how to do an array to array shift?
For example, the input Json is
{
"students": [
{"id":"1", "score":"5"},
{"id":"2", "score":null}
]
}
And the expected output Json is
{
"level1": {
"level2": [
{"number":"1", "score":"5"},
{"number":"2", "score":null}
]
}
}
How to write the shiftr spec?
Furthermore, is it possible to output only array element of which "score" is not null?
Thanks in advance.
Regards,
Jeff
hi there,
Could anyone help to show me how to do an array to array shift?
For example, the input Json is
And the expected output Json is
How to write the shiftr spec?
Furthermore, is it possible to output only array element of which "score" is not null?
Thanks in advance.
Regards,
Jeff