i have 4 lists The "name" List is the unique identifier for all the lists.I am clearing the data on lists Spec_titles,spec_details,varients over a for loop and appending new details on to them
name=["Some_car1","Some_car2",..."Some_carx"]
spec_titles=["price", "engine", "bhp","doors" ]
spec_details=["40000$", "1200cc", "125bhp", 5]
varients=["standard","deluxe","premium"]
i want to combine all these lists in a json format like below
{"vehicledetails":[
{ "Some_car1": {
"price":"40000$",
"engine":"1200cc",
"bhp":"125bhp",
"doors":"5",
"varients":"[
"standard",
"deluxe",
"premium" ]"},
{"Some_car2":[details]},
.
.
{"Some_carx":[details]}]}
i have tried using list-comprehension but couldnot add list varients items into the json, please help me with this problem Thanks in Advance