On Wed, May 15, 2019 at 09:08:44AM +0200, Alexander Burger wrote:
> (in '("@bin/ssl" "blockchain.info" 443 "de/ticker")
> (while (line)) # Skip header
> (readJson) )
Having discussed about Json all the time, let me say that in fact I never used
'readJson' etc. I feel it is overkill in most practical cases.
Instead, I parse the stream directly. This is much simpler and faster. In the
above case, I would extract e.g. the EUR rate as: the
(scl 8)
(in '("@bin/ssl" "blockchain.info" 443 "de/ticker")
(from "\"EUR\"")
(from "\"last\" : ")
(read) )
☺/ A!ex
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe