Refactor JSON parsing into an ALpha method