× 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.



Could you post your JSON again without any formatting.

On Tue, Aug 16, 2016 at 10:47 AM, Jan Grove Vejlstrup <jgv@xxxxxxxx> wrote:

I just ran it through the validator. It came out as valid:






Am 16.08.2016 um 17:35 schrieb Bradley Stone:

Ya, that JSON is not valid. Run it through this validator:

https://jsonformatter.curiousconcept.com/

I should have done that first. :) That's some messed up data.

Brad
www.bvstools.com


On Tue, Aug 16, 2016 at 10:33 AM, Bradley Stone <bvstone@xxxxxxxxx>
wrote:

What is that asterisk in the data:

*"MeasureUnit":{"UnitDesc":"Multipack","UnitDescShort":"Pack
","UnitCode":"02","UnitItemCou

That shouldn't be there should it?

On Tue, Aug 16, 2016 at 10:11 AM, Raul A Jager W <raul@xxxxxxxxxx>
wrote:

Your problem may be "Stück" because of the umlaut.


On 08/16/2016 11:03 AM, Jan Grove Vejlstrup wrote:

Hello,

I see the Bold doesn't come through. My problem is withe the two nodes
"MeasureUnit".

Best regards

Jan

Am 16.08.2016 um 16:37 schrieb Jan Grove Vejlstrup:

Hello

I am using yajl in the version from Scott Klement to parse JSON. But
I have a problem with this one:
{
"SalesOrderNo":"000001",
"PackageQuantity":1.0,
"PalletQuantity":0.0,
"Weight":3.44,
"SalesOrderState":40,
"SalesOrderItems":
[
{
"PositionsNo":"1",
"ItemNo":"31200200",
*"MeasureUnit"{"UnitDesc":"Stück","UnitDescShort":"Stk","Uni

tCode":"01","UnitItemCount":1.0,"DecimalCount":0},*

"ItemDescription":"Granito 1 Sahara",
"SortNo":1,
"TotalQuantity":11.0,
"QuantityPicked":11.0,
"StorageLocation":"A0201 03",
"IsFloorItem":true
},
{
"PositionsNo":"2",
"ItemNo":"31200201",
*"MeasureUnit":{"UnitDesc":"Multipack","UnitDescShort":"Pack

","UnitCode":"02","UnitItemCount":5.0,"DecimalCount":0},*

"ItemDescription":"Granito 2 Sahara",
"SortNo":2,
"TotalQuantity":12.0,
"QuantityPicked":12.0,
"StorageLocation":"A0201 04",
"IsFloorItem":false
}
]
}

My problem is with the two nodes, that I have put to bold. How can I
handle those with yajl?

Best regards

Jan


-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --
--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.