add ObjectSerializer to compile library to allow serialized from PB2 to JSON