Fix reflection decoding with JSON