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



An object of objects is equivalent to nesting data structures. For
example, one data structure has a field that is also a data structure.

You will have to define the maximum. It does not mean 6000 will be
returned as long as you set the length of the returned array using the
"detect length fields" support.


"WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx> wrote on 03/22/2019 04:28:50
PM:

From: Booth Martin <booth@xxxxxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxxxxxxxx>
Date: 03/22/2019 04:29 PM
Subject: [WEB400] IWS - JSON allows an object of objects, but does IWS?
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>

It occurs to me that I am probably missing a step and needlessly
complicating my life. Hence the question.

I have a learning application where I list the US Presidents, with a
five related stats about them. I made a data structure for these 6
fields, and then an array dim(50), with each president data structure
being an element of the array. Works well. Very pleased. I've expanded

that application and am excited about the results.

Then today I started another project where the number of used elements
of the array will bounce around from 600 to 6000 elements, but generally

in the under 1,000 range. Do I really want dim(6000)? Is there a
better way?

JSON allows an object of objects, but does IWS?





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.