json: add bbJsonObjMerge and some C++ helpers