edi-json icon indicating copy to clipboard operation
edi-json copied to clipboard

couldn't generate correctly json syntax

Open anar1501 opened this issue 1 year ago • 4 comments

Hi there, I tried to use my sample edifact file it doesn't generate correctly syntax there are some mistake syntax for example [, } etc.

anar1501 avatar Mar 03 '23 06:03 anar1501

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.

canabrook avatar Mar 03 '23 14:03 canabrook

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": "" } } ] } ] } ] }] }

anar1501 avatar Mar 09 '23 05:03 anar1501

Thanks for the info. I will definitely look into the situation; I am very curious to see what is going on. Feel free to contact me at a more direct email address, @.***

Scott

On Mar 8, 2023, at 11:55 PM, anar1501 @.***> wrote:

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": "" } } ] } ] } ] }] }

— Reply to this email directly, view it on GitHub https://github.com/BerryWorksSoftware/edi-json/issues/17#issuecomment-1461330084, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQDKPEET2PZLV5RJKEWJODW3FWEZANCNFSM6AAAAAAVOHJSEI. You are receiving this because you commented.

canabrook avatar Mar 09 '23 18:03 canabrook

The EDIFACT envelope information is indeed seriously flawed in the JSON output. Fortunately, this is an area that has been improved in recent versions of the underlying EDI framework. I will be integrating the updated framework and rebuilding this EDI-JSON software. I have sample PAXLST messages and will use them in testing.

Scott @.*** @.***

On Mar 8, 2023, at 11:55 PM, anar1501 @.***> wrote:

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": "" } } ] } ] } ] }] }

— Reply to this email directly, view it on GitHub https://github.com/BerryWorksSoftware/edi-json/issues/17#issuecomment-1461330084, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQDKPEET2PZLV5RJKEWJODW3FWEZANCNFSM6AAAAAAVOHJSEI. You are receiving this because you commented.

canabrook avatar Mar 09 '23 19:03 canabrook