cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
982
Views
12
Helpful
15
Replies

Value in Double Quotes

Jijesh
Level 1
Level 1

Hi Team,

I have created one uccx scipt that is  using the Post method . I want 2 string value double quotes. 

Eg:  "client_name"  : "Client_name"

Can you suggest how do I get the double quotes.

 

 

1 Accepted Solution

Accepted Solutions

Try this :

 

u"{\"clientname\":\"SRE\",\"password\":\"12345\"}"

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.

View solution in original post

15 Replies 15

Jijesh
Level 1
Level 1

@bill.king1 

Thanks for sharing the link . 

Below steps which I created  unfortunately not getting the double quotes. Can you suggest

{
"client_name": "SRE",
"password": "123456",
}

I am getting the out put value is 

"{ client_name : SRE , password : 123456 , }"

 

 

 

AFAIK you haven’t followed the advice given by @bill.king1 in the links he posted. From what I understand you’d need to escape the double quote for it to be kept. Please read the posts shared with you again more thoroughly.



Response Signature


In short you're going to have to send something like this: {
\"client_name\": \"SRE\",
\"password\": \"123456\",
}

There are a few other little gotchas, but that should get you more than half way there.

david

@Roger Kallberg 

Sure..  I liked the post

I didn’t mean that you should like the post, which is a nice and respectful way to express gratitude, but that you should follow the advice given on the other posts that was linked to.



Response Signature


My lazy solution for this has been to create character variables for single and double quote, and set the initial value when defining the variable. Then I paste them together when building the string value.

@david.macias 

I am getting the below error when I try to save the formula.

 

jijeshktbramblescom_0-1724175978070.png

 

Try "" around the whole thing.

david

@david.macias it is not working

@Roger Kallberg @david.macias @Elliot Dierksen @bill.king1 

if possible can you create a sample script . So I can refer.

 

BalajiSivaraj49175
Spotlight
Spotlight

Both values separated by the value comma(,). 

Jijesh
Level 1
Level 1

Hi Team,

I am tried multiple ways nothing working . Can I get a help 

 

Try this :

 

u"{\"clientname\":\"SRE\",\"password\":\"12345\"}"

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.