Fixed double json encoding