I would like to get next structure in JSON:
{
'for-sale': { name: 'For Sale', type: 'folder' },
'vehicles': { name: 'Vehicles', type: 'folder' },
'rentals': { name: 'Rentals', type: 'folder' },
}
I can use JavaScriptSerializer
to convert .net class to JSON format. But witch structure my class must have for above sample data?