Anyone familiar with Postman (REST API)?

a c i d.f l y

ಠ_ಠ
<Donors Crew>
3,128
4d 4h 59m
Reactions
3,949 1,355 0 0
#1
I'm trying to figure out why my code within the Body of one of my POST requests is turning from the color coordinated, purple and blue, to a standard black, if I modify it at all. I'm also getting a bad string notification, but it's returning the correct value when I Send. It says I'm sending a null value if the code isn't colored.

It's strange as fuck.

{
"ClientId":" **stuff here** ",
"Secret":" **stuff here** ",
}
 

Luthair

Knight of the Realm
1,127
1h 42m
Reactions
40 7 0 0
#2
No familiarity with postman, but you do have an extra comma.
 

ShakyJake

Vyemm Raider
2,844
8d 9h 35m
Reactions
4,280 161 0 0
#3
I'm trying to figure out why my code within the Body of one of my POST requests is turning from the color coordinated, purple and blue, to a standard black, if I modify it at all. I'm also getting a bad string notification, but it's returning the correct value when I Send. It says I'm sending a null value if the code isn't colored.

It's strange as fuck.

{
"ClientId":" **stuff here** ",
"Secret":" **stuff here** ",
}
Sounds like what you're describing, with the colors and all, is the JSON structure isn't correct once you modify it. What you pasted above looks correct, however.

You might want to try taking the modified JSON and pasting it into Notepad, or some other plain-jane text-editor, to strip away any hidden formatting that might be creeping in.
 

a c i d.f l y

ಠ_ಠ
<Donors Crew>
3,128
4d 4h 59m
Reactions
3,949 1,355 0 0
#4
Sounds like what you're describing, with the colors and all, is the JSON structure isn't correct once you modify it. What you pasted above looks correct, however.

You might want to try taking the modified JSON and pasting it into Notepad, or some other plain-jane text-editor, to strip away any hidden formatting that might be creeping in.
I guess I should clarify what I mean by modify, I'm not actually changing anything about the code, I'm simply clicking on it, adding a space, then deleting it. I have to import the originally provided test step to retain the "color", and it makes no damn sense.

I'll need to check my code again, but the comma being there or not isn't a factor and may just be a typo in my example.
 

alavaz

Knight of the Realm
1,265
2d 4h 38m
Reactions
293 11 0 0
#5
Sounds like it's getting set to "Text" rather than "JSON":



 

a c i d.f l y

ಠ_ಠ
<Donors Crew>
3,128
4d 4h 59m
Reactions
3,949 1,355 0 0
#6
Sounds like it's getting set to "Text" rather than "JSON":



This is exactly what I'm looking for. Didn't even realize that was a thing. Thank you!