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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNATCOLL JSON Parsing Date: Mon, 26 Nov 2018 18:01:14 +0000 Organization: A noiseless patient Spider Message-ID: References: <9524b3ee-476f-4af6-ab83-b15a6c2a417c@googlegroups.com> <4d7da2e7-ae4f-40da-a6af-e46db135e807@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="bf49c685e17bed62906014b39e9e2a8f"; logging-data="10867"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cDxdaBRciAppz4TVMOtEVZrUE0WlUG+E=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:KFaxHj14trEvRbaKpSdeugt9Vk4= sha1:nWZ1JBMqtpXzV3744sge1UgB2Zg= Xref: reader01.eternal-september.org comp.lang.ada:54902 Date: 2018-11-26T18:01:14+00:00 List-Id: eduardsapotski@gmail.com writes: > Yes, most likely a problem with ssl. I build AWS separately with > support openssl. Everything is working. > But json can be obtained without ssl. Try this: > http://api.exmo.com/v1/pair_settings/ OK, a little further. I think the problem may be with function Get (Val : JSON_Value) return JSON_Array is begin return Val.Data.Arr_Value.Arr; <<<< exception here end Get; which is expecting Val to be of type JSON_Array_Type, i.e. an array, but it isn't; it appears to be some sort of nested array-like structure, and I can recognise the names from the pair_settings. You need someone who understands GNATCOLL.JSON (there don't seem to be any examples in the source).