octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53100] implement jsondecode, jsonencode funct


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #53100] implement jsondecode, jsonencode functions
Date: Tue, 29 Jan 2019 17:38:19 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Follow-up Comment #7, bug #53100 (project octave):

Hi Philip!

> Are we sure the io package is a good home for it? If yes, good, if no, maybe
miscellaneous could be better, I really don't know. Opinions? 

To me, io seems like the best fit among the existing supported Octave Forge
packages. io is for "Input/output in external formats", and JSON seems to
qualify as an external format. io's already got support for Office formats,
which seems somewhat analogous. miscellaneous seems to be mostly numeric
stuff, and doesn't currently have any file format support that I can see.

> OTOH if the JSON library is not too big, comprises a limited nr. of files,
and has a GPL compatible license, it can be included in, and shipped with, the
io package. JuanPi and I did s/th similar for the clipper polygon clipping
library in the geometry package. 

This is the approach I'm taking with jsonstuff now, using the JsonCpp library.
It's 400KB including both the tarball and decompressed source, and is only
three source files when using the "amalgamated source" approach.

"Vendoring" the library like this is by far my preferred approach: installing
the lib using Linux or Mac package managers is really easy. But getting it
installed and available on Windows is a big pain. And I'd like to see all 3
big OSes supported.

JsonCpp's license is "Public Domain in jurisdictions where that is recognized,
and MIT License elsewhere". I don't know if that counts as GPL-compatible. If
it's not, switching to a different GPL-compatible library might be the best
choice.

I think for now I'd like to continue developing jsonstuff as its own package
where I have commit rights so I can iterate on it quickly. And then once it's
feature-complete and stable maybe it could be moved to io or core Octave.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?53100>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]