From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2f7ef46127892c41 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.66.84.6 with SMTP id u6mr1464651pay.31.1343042923332; Mon, 23 Jul 2012 04:28:43 -0700 (PDT) Path: b9ni38826895pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!ctu-gate!news.nctu.edu.tw!usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Adrian Hoe Newsgroups: comp.lang.ada Subject: Re: Little people supporting Ada, possibly through AdaCore? Date: Tue, 17 Jul 2012 06:47:02 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <12955589.960.1336138013614.JavaMail.geo-discussion-forums@vbbfk16> <5043095.1117.1336142172111.JavaMail.geo-discussion-forums@vbli11> <2d7fae9a-5be7-4011-a945-5ecd95684025@googlegroups.com> <949570cd-bdda-49ff-93c7-5189546adf7a@googlegroups.com> <5004ff62$0$293$14726298@news.sunsite.dk> NNTP-Posting-Host: 115.135.193.183 Mime-Version: 1.0 X-Trace: posting.google.com 1342533621 26974 127.0.0.1 (17 Jul 2012 14:00:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 17 Jul 2012 14:00:21 +0000 (UTC) In-Reply-To: <5004ff62$0$293$14726298@news.sunsite.dk> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=115.135.193.183; posting-account=coq9PAkAAAB2Xx46RZLFJw5dY9DVXW4- User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-17T06:47:02-07:00 List-Id: On Tuesday, July 17, 2012 2:00:03 PM UTC+8, Thomas L=F8cke wrote: > On 07/17/2012 03:58 AM, Adrian Hoe wrote: > > The JSON output that the example produced is perfectly valid JSON. M= y concern is human readable JSON. With the order of the objects not output = according to the sequence of the input/creation makes the output very un-re= adable for human. Not good for debugging purpose though. >=20 >=20 > From json.org: >=20 > "An object is an unordered set of name/value pairs." >=20 > So it is not the job of GNATCOLL.JSON to keep your JSON objects in any > kind of order. >=20 > :o) >=20 > --=20 > Thomas L=F8cke | thomas@12boo.net | http://12boo.net Yeah, but looks like GNATColl.JSON has mixed up the order of objects. So, i= f objects are created in the order of company_name, vat_no, hours, product = and web as in procedure Set_Core_Company_Data then it should be left as it = is. The objects should be traversed in the same order as they were created = but the output shows company_name, web, product, hours and vat_no. I don't = mean it is the job of GNATColl.JSON to sort the objects according to some = orders. The question is: Why the objects cannot be traversed in the origina= l order as they are created? Thanks. -- Adrian Hoe