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

268
Views
How do I fix this Unexpected token error?

Getting an error and I don't know why. Any idea?

Unexpected token / in JSON at position 233

I have found a few possible fixes and implemented them but they have not worked either.

This is the code:

const v2_ABIs = require("./Uniswap_V2_ABIs.json");

const v2abi = JSON.parse(v2_ABIs);

v2abi = v2abi.trim();

console.log(v2abi);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I had a read through the comments. If removing JSON.parse stopped causing the error. That means the JSON you where using contained something that caused a js exception when trying to parse it. If you can share the JSON I can pinpoint the exact issue, but if you don't actually need to parse it then its no problem.

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!