work on get_obligation

implementing error check for valid key type (regex),
return json data
Added tests for this method to test_projectGo