simple config.json

... and initial test for the JSON API