json: Add direct way to query a config option