skip to Main Content

Query / Json How can I save Data and Heading name in my local storage? – Jquery

$(document).ready(function () { $(":button").click(function () { var btn = $(":button").val(); if (btn == 'Favoritisieren') $(":button").css("background-color", "red").prop('value', 'Favoritisiert'); var obj = {"Hed.1" : $("h1")}; var myJSON = JSON.stringify(obj); localStorage.setItem('myJSON'); else $(":button").css("background-color","blue").prop('value','Favoritisieren'); }); }); hey, I would like to save the filename…

VIEW QUESTION

Parse JSON in java (custom)

I have a JSON array in the following format: [["1234","OS","01/31/2023","02/01/2023","First Day"],["1245","OS","01/23/2023","01/24/2023","Last Day"],["3411","OS","09/21/2022","09/21/2022","Second Day"]] In Java, I would like to parse this array and store data in the following format: String[] firstElements = ["1234" , "1245", "3411"]; String[] secondElements = ["OS",…

VIEW QUESTION
Back To Top
Search