Fix problems compiling JSON formats with MSVC
* OBAPI should not be used with template classes such as OBPairTemplate