Fixing deprecated JSON call

Yeah, I went by what the error message told me.