implement 'record_configuration' function

also use Bret's improved json verify routine in test_json_filevar