update json_api file logic and recursive plugin dirs

What do ya think?