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

270
Views
Why would you store json as a string inside of json

Screenshot of developer tools

When I looked at local storage when visiting youtube, I found some really weird looking json.

{
    creation: 1638112285935,
    data: "{\"quality\":1080,\"previousQuality\":360}",
    expiration: 1669216285935,
}

Why are there json inside of a string inside json? What is the reasoning behind storing it like this? Am I missing something?

Thanks a lot!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Im not sure but its possibly beacause this data is stored on mysql. in mysql you cant store data as type "json". so to store json in mysql you need to set the datatype "TEXT" and do a JSON.stringify() on the json before storing it in mysql. I hope my answer is clear I have poor English

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!