In other news...

Anyone able to provide some general help to a web design noob?

I've managed to call a json string of data. How do I extract a portion of that data and display it with CSS formatting? I'm using WordPress if that's relevant...

Sorry in advanced for a super noob question. Haven't tried any web building since the geocities days 🀣

Reply to this note

Please Login to reply.

Discussion

That's a question for GPT. Seriously it can teach you better than most people can.

Also bard from Google is good teaching stuff.

I tried asking gpt yesterday but was having some issues where it was making up assumptions. I'll give it another go later today.

Don't fully understand what you're trying to achieve but it sounds to me that you need to parse the json string and then you will be able to access the properties on the object.

const json = '{"name": "🐳"}';

const object = JSON.parse(json);

console.log(object.name);

--> output: 🐳

Hope this helps! πŸ’œ

πŸ™πŸ½πŸ™πŸ½πŸ™πŸ½