On Thu, 28 Feb 2019, Sven Schreiber wrote:
Am 27.02.2019 um 23:19 schrieb Artur T.:
> Am 27.02.19 um 16:21 schrieb Sven Schreiber:
>> Talking about mixing programming languages, maybe some of the json stuff
>> could be leveraged for gretl's 'foreign' interface. What I mean is an
>> easier or more flexible way to pass stuff from gretl/hansl to the foreign
>> language (Python, Julia, etc.).
>
> Very good idea! For instance, for R and Python there exist json read/write
> functions. Guess that would be an interesting project for future.
I'm still talking about stuff I don't fully understand, but maybe we should
have a hansl function that writes out the contents of a bundle (or let's say,
a well-defined subset of possible contents) as a json string or file.
bwrite() already serializes a bundle as XML. Is there a substantial
advantage in having a JSON serialization too? If so, is that best done
by writing a new serialization, or by transcoding the XML? (Googling
"convert XML to JSON" shows up tons of transcoding options.)
Allin