Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

352
Views
javascript: how to remove \x00 in json string

I have a json string and need to parse it it using JSON.parse()

but i need to remove all \x00 in my string

My json string:

'{"xd":"1","x":"285fd83"}\x00\x00\x00\x00\x00\x00\x00\x00\x00'
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

How about using javascripts replaceAll method?

var myString = '{"xd":"1","x":"285fd83"}\x00\x00\x00\x00\x00\x00\x00\x00\x00';

console.log(myString.replaceAll('\x00',''));

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!