Comments (4)
I will be glad to look into this issue. If you let me know what EDIFACT message type and release you are using, I will try to reproduce the problem with a sample of that type. The software is used most frequently with X12, but the underlying EDI framework is fully supportive of EDIFACT so I should be able to resolve any issue with the JSON output.
from edi-json.
My message type is PAXLST message and when I generate it there is problem occurs into json structure. Please copy and paste in the following json structure and see what is the problem
{
"interchanges": [
{
"UNB_01_SyntaxIdentifier": {
"UNB_01_01_SyntaxIdentifier": "UNOA",
"UNB_01_02_SyntaxVersionNumber": "4"
},
"UNB_02_InterchangeSender": {
"UNB_02_01_InterchangeSenderIdentification": "",
"UNB_02_02_IdentificationCodeQualifier": ""
},
"UNB_03_InterchangeReceiver": {
"UNB_03_01_InterchangeReceiverIdentification": "",
"UNB_03_02_IdentificationCodeQualifier": ""
},
"UNB_04_DateAndTimeOfPreparation": {
"UNB_04_01_Date": "",
"UNB_04_02_Time": ""
},
"UNB_05_InterchangeControlReference": "",
{
"GS_01_FunctionalIdentifierCode": "",
"GS_02_ApplicationSenderCode": "",
"GS_03_ApplicationReceiverCode": "",
"GS_04_Date": "",
"GS_05_Time": "",
"GS_06_GroupControlNumber": "",
"GS_07_ResponsibleAgencyCode": "",
"GS_08_Version": "",
"transactions": [
{
"UNH_01_MessageReferenceNumber": "1",
"UNH_02_MessageIdentifier": {
"UNH_02_01_MessageType": "PAXLST",
"UNH_02_02_MessageVersionNumber": "D",
"UNH_02_03_MessageReleaseNumber": "05B",
"UNH_02_04_ControllingAgency": "UN"
},
"segments": [
{
"BGM_01": ""
},
{
"NAD_01": "",
"NAD_04": ""
},
{
"COM_01": {
"COM_01_01": "",
"COM_01_02": ""
},
"COM_02": {
"COM_02_01": "",
"COM_02_02": ""
}
},
{
"TDT_01": "",
"TDT_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": "",
"DTM_01_03": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": "",
"DTM_01_03": ""
}
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"MEA_01": "",
"MEA_03": {
"MEA_03_02": ""
}
},
{
"FTX_01": "",
"FTX_04": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAD_01": "",
"NAD_04": {
"NAD_04_01": "",
"NAD_04_02": ""
}
},
{
"ATT_01": "",
"ATT_03": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"NAT_01": "",
"NAT_02": ""
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"RFF_01": {
"RFF_01_01": "",
"RFF_01_02": ""
}
},
{
"DOC_01": {
"DOC_01_01": "",
"DOC_01_02": "",
"DOC_01_03": ""
},
"DOC_02": ""
},
{
"DTM_01": {
"DTM_01_01": "",
"DTM_01_02": ""
}
},
{
"LOC_01": "",
"LOC_02": ""
},
{
"CNT_01": {
"CNT_01_01": "",
"CNT_01_02": ""
}
}
]
}
]
}
]
}]
}
from edi-json.
from edi-json.
from edi-json.
Related Issues (18)
- Premium Edition HOT 4
- -r flag for EDI-JSON
- Can this be available in maven central or any other repository ?
- Premium Edition HOT 1
- GENERATES WRONG JSON OUTPUT
- JSON to EDI HOT 5
- Unable to parse EDI to JSON HOT 1
- No license file
- remove slf4j in the distributed jar HOT 1
- is API available? HOT 1
- Change length parameter for ISA elements
- Can I parse a 271 file into json? HOT 4
- option to send output to stdout instead of a file HOT 3
- Segment count error in SE segment when parsing a 215 file HOT 1
- Recoverable Errors HOT 2
- Invalid JSON (sort-of) HOT 1
- JSON array names HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edi-json.