× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.