When navigating back to a list page, I want to make sure that the filter criteria are still retained. My solution involves using cookies, which are set when the form filter is submitted. In the list page's mounted hook, I retrieve the specific cookie as a string and use the split method to obtain the following result:
[
"filter1:value",
"filter2:value"
]
This results in an array of strings. How can I convert this into JSON format so that I can manipulate and insert each value into the v-model of the form filter?
*This pertains to a web application utilizing VueJS.