Reputation: 5
Json: { "Data":"12345678" } I need the result like this "Data": "12345678 " Must take 15char Please help me to write jsonata logic
Upvotes: 0
Views: 89
Reputation: 261
$pad function will be useful here:
{
"Data": $pad(Data, 15)
}
You can check out this solution in Stedi's JSONata Playground: https://stedi.link/OM1K6XB
Upvotes: 2