Reads the given attribute from the element, parsed as JSON.
Returns undefined if the attribute value is blank.
undefined
Throws a SyntaxError if the attribute value is an invalid JSON string.
SyntaxError
The element from which to retrieve the attribute value.
The attribute name.
The cast attribute value.