Share My Creation Malaysian e-Invoice Sample Payload JSON Parser

Version: 1.00

B4X json parser for sample payload listed on the IRBM microsite

lhdn-einvoice-sample-json-parser.png


Modified from code generated using JsonTree online tool

p/s: I dislike UBL format.

Github: https://github.com/pyhoon/lhdn-einvoice-b4j
 
Last edited:

tchart

Well-Known Member
Licensed User
Longtime User
Interesting. I think you mentioned early on that there is an XML version of this format. I think this is likely related to that as XML can have duplicate keys. JSON shouldn’t have duplicate keys. The correct conversion is to have an array of InvoiceLine items. I know you likely didn’t do the conversion but you might need to report this to the provider.
 

aeric

Expert
Licensed User
Longtime User
By the way, this app is quite useless.
It is just to parse the sample payload which has no real life use case.
The actual useful function is to generate the invoice payload which I am working on, that I don't think I want to share.
However, it is good to see what items are involved to study the structure of the invoice.
 
Top