update json_api file logic and recursive plugin dirs
Merge pull request #3 from Zamicol/master

update json_api file logic and recursive plugin dirs