fixed reflect for encoding/json