|
On Jan 18, 2018, at 12:46 PM, Craig Richards <craig@xxxxxxxxxxxxxxxx> wrote:
IS JSON OBJECT is telling me this is valid:
{: "KD", "intkRef": "Craig Intake 001",
"items": [{"itemRef": "Ref_001", "manuDate": "2015-11-21", "altRef":
"Alt_001", "itemText": "Text 001", "UOM": "SM", "weight": 0.25, "width":
5.0, "length": 25.5, "prodCode": "Product 1",
"colourCode": "Colour 1", "colourText": "Colour Text 1", "dyeLot": "Dye Lot
1", "QCHold": "Q", "faultCode": "abc", "grade": "Gd1", "stockType": "s",
"tareWeight": 1.01, "comments": "no comment"},
{"itemRef": "Ref_002", "manuDate": "2018-01-28", "altRef": "Alt_002",
"itemText": "Text 002", "UOM": "SM", "weight": 0.35, "width": 4.5,
"length": 24.0, "prodCode": "Product 2",
"colourCode": "Colour 2", "colourText": "Colour Text 2", "dyeLot": "Dye Lot
2", "QCHold": "C", "faultCode": "abd", "tareWeight": 1.11, "comments":
"still no comment"}] }
I dropped the key out of the first key-value pair.
( e.g should have been:
"warehouse" : "KD"
not
: "KD"
)
JSLINT agrees with me that it isn't a valid JSON object.
Anyone else come across this?
regards,
Craig
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
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.