I am using bubble as a checkout and want to pass the cart items (as they have nested values for subscriptions) as JSON whcih I have sone using base64 encoding and decoding but I’m having difficulty converting the json to a list of thing (with nested things) and save it to a state on the page so that it is faster than saving to the database.
Does anyone know how to convert a nested JSON into a list of things (with nested list of things)?
The array will look something like this…`
// cart-items
"purchased_bundle_count": 2,
"purchased_bundles": [
{
"id": 1,
"bundle_id": 3,
"qty": 2,
"bundle_items":[
{
//Grass - Three weekly
"variant_id": 4
},
{
//PP - Black
"variant_id": 8
}
]
},
{
"id": 2,
"bundle_id": 3,
"qty": 1,
"bundle_items":[
{
//Grass - Weekly
"variant_id": 2
},
{
//PP - WHITE
"variant_id": 9
}
]
}