Fixing deprecated JSON call

https://github.com/rust-lang/rust/issues/15317