support json format in getBugs, add a limit and name parameter