Why would you store json as a string inside of json

Questions : Why would you store json as a string inside of json

472

Screenshot of developer tools

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

{
    creation: 1638112285935,
    data: _OFFSET);  "{\"quality\":1080,\"previousQuality\":360}",
 (-SMALL     expiration: 1669216285935,
}

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

Thanks a lot!

Total Answers 1
31

Answers 1 : of Why would you store json as a string inside of json

Im not sure but its possibly beacause use of case this data is stored on mysql. in mysql United you cant store data as type "json". so Modern to store json in mysql you need to set ecudated the datatype "TEXT" and do a some how JSON.stringify() on the json before anything else storing it in mysql. I hope my answer is not at all clear I have poor English

Top rated topics

Bash: read filnames from file and check if it exist

How to communicate between two services in Fargate using docker compose

How to automatically adjust the <textarea> height to the inner text's height using only css without using javascript?

How to display data from database in listView - POWERBUILDER 11.0

Angular 6 TypeError: Cannot read properties of undefined (reading 'length') error

Converting a sequences of RGB images and depth files to mkv file format

Spring initializer Java version 15 is missing

Multitest p-values are different compared to graphpad prism?

Pause then resuming simulation in Anylogic

Libgdx Rendering Bitmap font to pixmap texture causes extremely slow rendering

Python return functions issue

Schema level deadlock on SQL Server between SELECTS (or other queries) and ALTER ROLE ... ADD MEMBER when creating credentials

In MongoDB, what is the time complexity of a query to find all records with row ids not in a given list?

JavaScript onclick event retrieve attribute?

How to use regexp_substr in Redshift

CSS : Scale and rotate in place multiple SVG backgrounds image on one element - possible without JS?

How to enable Figurecanvaskivyagg fit MDBoxLayout automatically?

Cosine Similarity in linear time using Lisp

React Bootstrap: How can I change the icon of Dropdown.Toggle from the arrow icon to some other icons from React Icon?

How check the state of individual checkbox in reactjs (material-table)

DolphinDB: why column names of a matrix are renamed

Fragment management access error visible return false

Running npm run dev causes Nextjs to change my jsx property in ts config file

Chart.js 3.6.2, Angular 10: Logarithmic Line chart Y-Axis problems. How to set and keep Y-Axis properties, even when data changes?

Nvidia-smi command not found on DJI Manifold 2G NVIDIA Jetson TX2

Can't find hyper link for this csv file on website

Bytebuddy--how to make a new method to invoke the original code of another (rebased) method?

Minimax Algorithm with TicTacToe (But each player can only have 3 tacs on board)

Update dynamic data in certain columns only

How to partially match a list and write matched characters in a data frame in python

Getting the message before the referenced message - discord.py

Forecasting in R: UseMethod model function error

Using ChoETL to print CSV file returns values to Console as "dynamic"

Split a fullname into first, middle, last and suffix

Most efficient way to enumerate and modify over a ConcurrentBag of objects

My "GetKeyDown" mettod doesn't work unity version 2018.4.34f1

How to draw a simulated ECG?

Flipping sprite by y axis when rotated past a certain point

How to compare 2 non-identical dataframes in python

Remove the Duplicate value item from 2 same format JSON objects in Java

Discord.js v13 Cannot read properties of undefined (reading 'roles')

Spark read job from gcs object stuck

How do I compile Tomcat mod_jk on a MacBook Pro M1 chip?

How to change the borderwidth and relief of 1 ttk combobox

How to translate SQL to C#

How to change Shape and Color of points in Vega Scatter Plot?

How to configure a button containing an image in TableViewCell.swift file, and implement showing different images in each table view cell?

How to configure SNS Topics for AWS Athena Query Results?

Sticky Navbar still moves

Base Docker in Docker image cannot start Docker daemon

Top