fix type error
update for 0.12.1 changes
Update for Json changes in 0.12.1