Remove redundant Json.toJson call and unneeded imports