fixed driver json encoding