Add api functionality to get json info