Probably the more businessrelated question is: How much is that supplier worth to your customer's business ?
If the answer is: "A Lot" you probably have to conform no matter how technically incorrect their data may be if that's what they want.
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
-----Original Message-----
From: "Brad Stone" <bvstone@xxxxxxxxx>
To: "Midrange Systems Technical Discussion"
<midrange-l@xxxxxxxxxxxxxxxxxx>
Date: 29/03/2024 01:08 AM
Subject: Dealing with Trading Partners With Invalid JSON
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx>
Hello, all!
How would you all deal with a trading partner that gives you specs on JSON
for a web service where the JSON itself is invalid and the project
manager just wants to work around it (bandaid style)?
YAJL won't let me create the invalid JSON... the trading partner doesn't
seem to care their JSON is invalid (I'd love to know what they're using to
parse it... but because their docs are much more detailed on XML I would
assume maybe they convert it from JSON to XML and then parse it).
It's very frustrating to say the least. Example:
items {
item {....},
item {....}
}
Obviously the items object should be an array... YAJL won't let me create
multiple item objects in (and it shouldn't..), the JSON fails the JSON
validators... etc.. etc..
When we ask for clarification they send another sample that has the same
issues.
Bradley V. Stone
www.bvstools.com
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or any
Cloud
Provider!
As an Amazon Associate we earn from qualifying purchases.