JsonCppSerializer: Bit of clean up of code