'Special Characters' are causing JSON files to be errored

Hello all,

I’m sending a JSON file to our system via SQS, however, I keep receiving an error stating that special characters are preventing it from sending correctly.

The error is:
Deserialize JSON: After parsing a value an unexpected character was encountered

Is there anything I can do to prevent this? I’m quite new, apologies if this is a silly question.

can you share the JSON?

Unfortunately, it has customer information and so I am unable :frowning:

but you can mask sensitive information
e.g. SSN: 12***6

Unfortunately, it is ALL sensitive information and there are hundreds of fields.

OK, then maybe you can do following:

  • ensure that the JSON not contain any characters which are to escape e.g. a backslash \

An issue with this is that it is technical spec information which is being scraped from a website, so it may be difficult to not include special characters such as this.

not sure if I got your right. The special chars are possible, but just needs to be escaped. For this we can e.g. serialize the values and can do it via apis directly.