change example to print XML response in JSON