Below is a string which I want to dynamically pass to Json:
String username = 'IntegrationUser' Below is the json format wherein I want to pass username. But this does not work.
String payload = '{"UserID": '+ username + '}'; I even tried below line of code but didnt work
String payload = '{"UserID":'+username +'}'; How to pass this dynamic value ?