On Fri, 12 Jul 2019, Artur Tarassow wrote:
Am 12.07.19 um 17:38 schrieb Riccardo (Jack) Lucchetti:
>
> It would be really cool if we could pass bundles to languages
> that support some variant of associative arrays, eg R, where they
> call them lists, or Python, where they call them dicrtionaries
> (IIRC). [...]
>
> Proof-of-concept: [...]
I would rather favour the json-format as an exchange protocol.
Json was meant to be a successor of xml for some good reasons:
- A json-file can "easily" be read and written by humans.
I agree that json has some advantages over XML, but I'm sure that's
not one of them. XML is pretty transparent; with json you have to
handle pile-ups of '{' and '[', '}' and ']' -- easy enough
for a
computer but not for a human (or not this one).
All the same, it might be worth adding json serialization functions
for gretl objects, if there's a definite advantage on the receiving
end -- in the sense that Python, for example, might be happier and
quicker handling json than XML (?).
Allin