Avoid double lookup in opIndex for std.json.
Merge pull request #2197 from AndrejMitrovic/Fixup2186

Avoid double lookup in opIndex for std.json.