Problem whit DecodeURLComponent

Hello In a post i receive a request.body whit a json where inside there is something like that:

order=%7B%0A%20%20%20%20%22order_number%22%3A%20%22REFI …

but DecodeURLComponent give me only order [

How can i resolve ?

thank so much

Edit: I need coffee, I’m not sure what I said was right. Needs testing.

Back with test results. Unfortunately I can’t reproduce your issue.

Debugger Screenshot

Can you post a sample project that demonstrates the issue with your sample value?

(post deleted by author)

“order_number”: “REFILLD_T2_101115123”,

"date": "2023-10-11",

“items_count”: “286”,

“items”: [

this is an exampe of the json

There’s a character there that shouldn’t be there. That’s causing the issue you’re seeing.

Note the %0A in the input string. That’s a Chr(10). A line feed. That seems to be the cause. Use unformatted JSON or ReplaceLineEndings.

1 Like

Length: 33 is longer than order=[ so I think you’ll see the text is below the EOL in that viewer.

You should be able to select all and copy the full value out of the viewer, or if you have a mouse wheel try scrolling. You could also make the debugger pane taller.

Sorry you are right is ok debugger too small… thank :rofl:

Happy to help. Please don’t forget to mark a solution.