Hi all,
I thought this could be of interest to some of you. Gretl has the
built-in functions jsonget() and jsongetb() which is very nice!
I wasn't aware about json-files until recently. At work we use these
files (apart from yaml-files) as definition files defining specific
parameters or variables of interest globally.
Imagine you have a model framework and you don't want to change any
parameter in your generically written code as it just works and any
further change may break it. Instead, you JUST pass json-files to the
framework which include all relevant information such as the list of
variables and eventual manipulations of these, specific settings on the
sample, choice of the estimator etc. You can easily put all these things
into json-files.
I've uploaded an example on how to use this with gretl here:
https://github.com/atecon/json_gretl
Best,
Artur