Do I Need JSON for My E-Commerce Project?

0
9
Asked By CoolCactus92 On

I'm working on an e-commerce website using HTML, CSS, and JavaScript for a class project, and it's also for my mother's brand. I've come across JSON (JavaScript Object Notation) while looking for tutorials on creating a cart sidebar, and I thought it might help with data manipulation. However, I'm not very experienced with it, and I'm only dealing with about ten items in the shop. My main question is whether I really need to create a JSON file for this or if I should just stick with simple data manipulation instead. Any advice would be appreciated!

5 Answers

Answered By DataDynamo56 On

Remember, JSON is merely a method for storing your data. You can use it effectively to handle data for your code, but how you store and manage that data is what's essential. Using JSON stored in files isn’t as necessary if you're just getting started.

CoolCactus92 -

That's a relief to hear, thanks!

Answered By BackendBuff15 On

To make a functional e-commerce website, knowledge of backend systems and databases is crucial. Skipping that part can really limit what you can build. I'd recommend looking into that as you move forward with your project.

Answered By TechieTurtle77 On

It’s important to have a solid grasp on JavaScript and web development basics before diving into JSON. JSON is just a way to structure your data, while data manipulation is how you handle that data. If you only have a few items, you might find it easier to stick with direct data manipulation for now until you get more comfortable. Just remember, handling checkout processes will eventually require some backend knowledge. Good luck!

CoolCactus92 -

Thanks for the advice!

Answered By CuriousCoder49 On

Could you clarify how you're currently using the JSON object? That might help identify what's going wrong with your cart functionality. Are you trying to add items in a certain way? Sometimes there are small issues that cause these problems.

CoolCactus92 -

I'm attempting to add specific items to the cart, but it doesn't always work. Sometimes it adds without the price, or the cart just won't open.

Answered By FrontendFrog23 On

Looks like you might be focusing just on the frontend with no backend setup. Unfortunately, building a functional e-commerce site is pretty tough without understanding backend processes. It might be wise to learn more about that to create a complete solution.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.