Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

266
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda