JuliaIO / JSON.jl

JSON parsing and printing
Other
311 stars 100 forks source link

implement printfile (complementary to parsefile) #326

Open exaexa opened 3 years ago

exaexa commented 3 years ago

Hello,

printfile seems like a nice convenience function to have to me. I know that it's kindof redundant, but it really simplifies the package use when you just want to dump something to JSON (e.g. bioinformaticians won't need to think about how to construct the lambda in open :] ). API-wise I find it nicely complementary to parsefile.

Closes #325

Also closes https://github.com/LCSB-BioCore/COBREXA.jl/issues/397 (a typical usecase.)

I'm not sure if printfile name is the best one, feel free to change/suggest a better one.

Thanks & best, -mk