Am 28.02.2019 um 11:10 schrieb Riccardo (Jack) Lucchetti:
On Thu, 28 Feb 2019, Sven Schreiber wrote:


As I said, my json knowledge is limited to the Wikipedia entry, but does the following prototype give a valid json document?

It is. JSON documents normally don't contain newlines. The complexity I was referring to is linked to the myriad of data types we have in hansl, each of which requires a different JSON-isation. For example, I would have stored matrices in a completely different way (that is, vectorisation + 2 scalars for dimensions, similar to what we use in mread/mwrite), but your solution is also nice and has its own advantages.

I guess one would try to target a format that is easily understood by the already existing json tools in R, Python etc. Maybe Artur knows what they would look like.

cheers
sven