Tweak last change to get model parameters in json output too.