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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?B?QmrDtnJuIEx1bmRpbg==?= Newsgroups: comp.lang.ada Subject: Re: JSON and interpreting JSON objects Date: Fri, 13 Mar 2015 16:07:17 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 13 Mar 2015 15:06:30 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="23e59b4906029a0ce22afc4c4b1f25ee"; logging-data="6692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eA0xeu5AGOAU3BQlUVifv" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 In-Reply-To: Cancel-Lock: sha1:DeJfNyn9IP+JWXra+/HzeKSsqFY= Xref: news.eternal-september.org comp.lang.ada:25162 Date: 2015-03-13T16:07:17+01:00 List-Id: On 2015-03-13 14:15, tonyg wrote: > > > 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 object, and I was wondering what to put in "when JSON_Object_Type 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. in gnatcoll.Json spec, there is subtype JSON_Container_Value_Type is JSON_Value_Type range JSON_Array_Type .. JSON_Object_Type; which indicates that it is some kind of container. -- Björn