Is there a way to store the output of a JSON.parse as a single entity in the DOM?
For example:
jsonObject = JSON.parse(something);
I am interested in finding a method to store the jsonObject in the DOM, such as a child element or textNode, so that I can retrieve it later and access its contents easily using jsonObject.keyName.
I want to avoid adding multiple dataset attributes and having to extract them individually. It would be too tedious and inefficient if there are numerous key:value pairs.