api_generator:cpp: add json result type