cpp with json data example