D
diegodamage82
Guest
Hi.
How can I convert this Json:
{
"pnr": "test",
"lastName": "Perez",
"body": "",
"paymentRequests": [
{
"paymentMethod": {
"paymentType": "ExternalPayment"
}
}
]
}
to this Json
{
"pnr":"test",
"lastName":"Perez",
"body":{
"paymentRequests": [
{
"paymentMethod": {
"paymentType": "ExternalPayment"
}
}
]
}
}
I need to pass the node "paymentRequests" to the value of "body". I dont know how to convert the node to a value from other node.
Thanks in advance.
Continue reading...
How can I convert this Json:
{
"pnr": "test",
"lastName": "Perez",
"body": "",
"paymentRequests": [
{
"paymentMethod": {
"paymentType": "ExternalPayment"
}
}
]
}
to this Json
{
"pnr":"test",
"lastName":"Perez",
"body":{
"paymentRequests": [
{
"paymentMethod": {
"paymentType": "ExternalPayment"
}
}
]
}
}
I need to pass the node "paymentRequests" to the value of "body". I dont know how to convert the node to a value from other node.
Thanks in advance.
Continue reading...