I wanted to parse x12 format file to json file using java. I didn't find any information regarding this on internet. can someone please tell me how to do this or any jar file which can be able to do this is also fine.
Asked
Active
Viewed 1,186 times
-2
-
1It's just text. Download an EDI editor, learn the formatting of X12 and then parse it into your JSON. Or, get a commercial translator that would allow you drag/drop mapping paradigms and also handle some of the X12 workflow (997s, TP management, reports, etc) – Andrew May 29 '18 at 13:58
-
Thank you for your suggestion Andrew, can you please tell me the names of commercial translators which can do this. – NikhilGandham May 30 '18 at 04:15
1 Answers
1
How to do it:
Obtain documentation on your x12 file (do you mean HIPAA data exchange?). It will tell you about the different records, their layout and sequencing
Define target schema for the JSON you want to produce. Surely you don't want to produce just any JSON
Define mapping. Draw spaghetti on a whiteboard, piece of paper, or something like Altova Mapforce, until you have all elements connected.
Choose your transformation approach depending on the dataset size - streaming or object to JSON serialization
Implement
Look for performance bottlenecks. Introduce optimizations to speed up processing.

Michal
- 2,078
- 23
- 36