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



DATA-INTO would certainly work but of course first you have to build the parser. IBM's samples would help - and maybe download Scott's YAJLINTO parser since that will be close to what you need. Except fo course that you can't use YAJL itself for the basic parse.

Another possibly simpler option might be to write a routine to translate this "whatever it is" into JSON and then use YAJLINTO.


Jon

On Feb 10, 2021, at 9:56 AM, Raul Alberto Jager Weiler <raul.jager@xxxxxxxxx> wrote:

Thank you, it is a big help.
Now I need to work on reading it into a RPG data structure. Maybe
DATA-INTO?

On Tue, Feb 9, 2021 at 8:14 PM <dfreinkel@xxxxxxxxxxxxxxxxx> wrote:

That looks like a php array.

Darryl Freinkel
A4G
Telephone: 770.321.8562 Mobile: 678.355.8562

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
smith5646midrange@xxxxxxxxx
Sent: Tuesday, February 9, 2021 5:44 PM
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: Data Format?

I'm always curious about data formats so I went digging. Google is my
best friend. :)

I couldn't quite figure it out but I found something called Laravel that
looks like it. I have no idea what Laravel is but hopefully that will get
you started.

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Raul
Alberto Jager Weiler
Sent: Tuesday, February 9, 2021 4:17 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Fwd: Data Format?

How can I read this?

---------- Forwarded message ---------
De: Raul Alberto Jager Weiler <raul.jager@xxxxxxxxx>
Date: mar., 9 de feb. de 2021 12:59
Subject: Data Format?
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxxxxxxxx



I found a data format similar to json, but with some differences, here is
a sample, Does somebody recognize it?
TIA

array:4 [▼
"nclie" => 9999990
"imp_compra" => 6000
"ref" => "Ediciones"
"detalle_productos[]" => array:1 [▼
0 => array:5 [▼
"id_producto" => 1593
"descripcion_producto" => "Edición Abc Color del 01-02-2021"
"cantidad" => 1
"tipo" => "diario"
"precio_unitario" => 6000
]
]
]
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


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.