Forum Discussion

mohit3's avatar
mohit3
New Contributor
3 years ago

Getting issue in creating JSON

Need to convert the below source JSON to target JSON
Source :
“Header”:
{
“Customfield”:
{
“ABPER”:“202303”,
“ABKRS”:“SL”
}
}

Target :
“Header”:
{
“Customfield”:
{
“fieldname” :“ABPER”,
“fieldvalue” : “202303”
},
{
“fieldname” :“ABKRS”,
“fieldvalue” : “SL”
}
}
@dmiller @rsramkoski can you please in converting the json to the above given format.

1 Reply

  • venkat475's avatar
    venkat475
    New Contributor II

    this is my copybook layout and sample file how to convert this into csv using the python script