Factoring json config code out of smash script