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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.5.104 with SMTP id r8mr49664582obr.19.1426262621872; Fri, 13 Mar 2015 09:03:41 -0700 (PDT) X-Received: by 10.140.48.97 with SMTP id n88mr770280qga.35.1426262621837; Fri, 13 Mar 2015 09:03:41 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!news.glorb.com!hl2no11459514igb.0!news-out.google.com!db6ni50316igc.0!nntp.google.com!hl2no11459513igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 13 Mar 2015 09:03:41 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=5.81.80.126; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P NNTP-Posting-Host: 5.81.80.126 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7860fa30-2ff7-4bc4-a6f1-a4e2e6c0ac86@googlegroups.com> Subject: Re: JSON and interpreting JSON objects From: tonyg Injection-Date: Fri, 13 Mar 2015 16:03:41 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:25163 Date: 2015-03-13T09:03:41-07:00 List-Id: On Friday, 13 March 2015 15:07:18 UTC, bj=F6rn lundin wrote: > On 2015-03-13 14:15, tonyg wrote: > >=20 > >=20 > > I'm playing with some JSON. I am trying to pick some information out of= a JSON object but am trying to understand what I am doing first. > > In the following code I am not totally sure about displaying a JSON obj= ect, and I was wondering what to put in "when JSON_Object_Type >=20 > Have a look in Gnatcoll.Json.Write > In there, they do what you want - printout of a JSON, testing on > different types, JSON_Object_Type included. >=20 > in gnatcoll.Json spec, there is >=20 > subtype JSON_Container_Value_Type is JSON_Value_Type range > JSON_Array_Type .. JSON_Object_Type; >=20 > which indicates that it is some kind of container. >=20 > -- > Bj=F6rn Thanks Bjorn!