I'm currently having a JSON file which needs to be converted into a text file with fixed length for each field.
For example, for a JSON
{
"employee": {
"name": "ABC", [length = 10]
"salary": 1000 [length = 5]
}
}
The output text file should be:
ABC-------1000-
Since I'm new to this, is there any Java library I can use to assign fixed width for each field and create a flat-file for it?