In C#, I fill a list
List<CareerOpportunities> jobs = new List<CareerOpportunities>();
with objects that hold job opportunities. I want convert "jobs" to JSON format like this:
    {
    "Job Title":{
    "Sex":"...",
    "City":"...",
    "Date":"...",
    "ActivityField":"...",
    "Salary":"...",
    "WorkHours":"...",
    "Insurance":"..."
    "Address":"..."
    },
    .
    .
    .
    .
    }
How can i do that?
I tried but i got this result:
[
{
"JobTitle":"...",
"Sex":"...",
"City":"...",
"Date":"...",
"ActivityField":"...",
"Salary":"... ",
"WorkHours":"...",
"Insurance":"...",
"Address":"...
},
.
.
.
.
]
 
     
     
    