Create react application Trigger state changes. contentType:"application/json" You need to use JSON.stringify method to convert it to JSON string when you send it,. ; th:lang-xmllang will set lang and xml:lang. Load JSON-encoded data from the server using a GET HTTP request. Save Article. Accessing data attributes in JavaScript. if your data attribute is named "data-srcset", just pass "srcset" "srcset" "lazy-srcset" data_sizes: The name of the data attribute containing the sizes attribute to use, excluding the "data-" part. The data type is defined as an integer using db.Integer. This is consistent with the way that standard DOM turns dashed names into camel case for