#Best way to Read JSON files (Locally Stored)

11 messages · Page 1 of 1 (latest)

normal leaf
#

Hello all,
Just picked up Solid for the first time today after learning a little react.

  1. Where is the best place to get the most up to date documentation? The SolidJS website is a little light on specific syntax and such compared to other languages and frameworks.
  2. I have a locally stored JSON file which I want to read from (Displaying names, descriptions and pictures of items for e-commerce store.) What is the best way to get that info?

Any help would be highly appreciated ESPECIALLY pointing me in the direction of the more detailed documentation.
All the best

echo urchin
#

For #2, if you’re using typescript or Vite, you can import the JSON file directly with import someName from “somePath/someFile.json”

normal leaf
rain basin
#

there is an option for resolving json in tsconfig

normal leaf
#

https://www.youtube.com/watch?v=ZZ-a7B761Ds&t=123s @59.50 they managed to do an API call of some JSON. I tried to copy it but a bunch of errors come up

SolidJS is an exciting framework with a small (6.4kb) footprint, a reactive, component-based approach, and incredible performance. In this episode, Ryan Carniato will teach us how to get started with our first SolidJS app!

00:00:00 Welcome
00:00:24 Guest introduction
00:02:46 Jason's initial thoughts on SolidJS
00:04:21 What's different about S...

▶ Play video
#

This one is from the vid

dreamy zodiac
#

same question here. It seems this question has never been answered. @normal leaf Do you have a proper solution now?

rain basin