Fix json casting for App struct