specialize Result.MarshalJSON to reduce number of reflections and increase perf