string option for inherit attribute, more tests for json2dir