parse json in extra
moved all code to call back phase