use json in github api call