rama devi
rama devi

Reputation: 5

How take exact 15characters using jsonata

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

Answers (1)

Tomasz Łakomy
Tomasz Łakomy

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

Related Questions