Fix JSON not being converted bug: Dont enocde twice