Refactors GetJsonAPI