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
do
Result := url_memory
if Result = Void then
Result := new_url
url_memory := Result
end
ensure
not_void: Result /= Void
always_the_same: Result = url
end
--
Any help would be welcome.
Thanks in advance & best regards,
Paul