[BUG #7332] add missing lines in example code
[BUG #7332] add default content-type and react on 'application/json'