WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Should we store the data as an array in JSON string format?

Zexanal

New member

0

0%

Status

Offline

Posts

39

Likes

0

Rep

0

Bits

205

3

Months of Service

0%
Hello. For example:

1John Doe[email protected]Male["/media/profile_images/user_1/profile_image_0_1724535732998.jpg", null, null, null, null, null, null, null, null]["lesson1", "lesson2", "lesson3", "lesson4"]
As in the example above "["lesson", "lesson", "lesson", "lesson"]" let me talk through this example. When we want to store data such as lists, objects, etc. in a database, should we store it as an array or object, or should we store it as a JSON string? Or should we use a structure like a hashtable? I know that arrays and objects are usually not stored as they are in databases, so storing them as JSON strings seems more logical. How should data be stored professionally? Thank you.
 

249

6,622

6,642

Top