[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Liberty-eiffel] JSON and XML parser -- newbie question

From: Os Paul
Subject: [Liberty-eiffel] JSON and XML parser -- newbie question
Date: Wed, 13 Feb 2019 00:21:33 +0100

Dear Liberty Eiffel Mailing List Members,

Could anyone send me some examples how to use the JSON parser included in Liberty Eiffel (src/lib/json)?
I was not able to figure out which class to use. I'd mostly like to parse JSON from strings returned by C functions.

I tried to use the XML parser too but got lost totally. Fortunately there are examples for this in the package but unfortunately
those all read the XML from files. I'd like to parse something in memory/string. In all of the examples I saw references
to 'URL'. I traced back these to STREAM but I got stuck there. How could I generate URL for something in memory?

This part of the code in stream.e looked totally cryptic for me:

   frozen url: URL
         -- The URL to this stream as resource
         Result := url_memory
         if Result = Void then
            Result := new_url
            url_memory := Result
         not_void: Result /= Void
         always_the_same: Result = url


Any help would be welcome.

Thanks in advance & best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]