Parse json and execute callback