I know almost nothing about json so bear with me.

Open your Bibles please to

https://www.ibm.com/us-en/

Don't browse, just look at the html.

,s/></>\n</g

To make it readable.

Ok, the last script in the head section

<script type="application/ld+json">

What is that? I'm sure it's there for a reason. We need to know what to do with 
it.
I gathered it up into a string and passed it to JSON.parse() in duktape and it 
parses just fine.
That returns the corresponding javascript object.
All good, but what am I suppose to do with this object?
If I just feed this string to JSON.parse, that object gets thrown away. It all 
gets thrown away.
Unless I store it somewhere, but where?
The script doesn't specify a variable for me to put it in.
Do I put it under some property under the script object?
Any help appreciated.

Karl Dahlke

Reply via email to