Skip to content

Instantly share code, notes, and snippets.

@ialameh
Created August 29, 2020 03:56
Show Gist options
  • Save ialameh/122da64926c882b04f486cf485cb0b12 to your computer and use it in GitHub Desktop.
Save ialameh/122da64926c882b04f486cf485cb0b12 to your computer and use it in GitHub Desktop.
import 'dart:convert';
void main() {
String jsonFile = '''{
"afterTwelve": {
"interest_name": {
"Engineer": {
"special_notes": {
"note_title": "Join top colleges to have a better environment"
},
"has_subfields": "True",
"subfields": {
"subfield_1": "Computer Engineer",
"subfield_2": "Electrical Engineer",
"subfield_3": "IT Engineer",
"subfield_4": "BioMedical Engineer"
},
"entrance_exams": "True",
"competition": "High",
"entrance_institutes": {
"available_institues": "14",
"starting_price": "12135",
"institute_1": {
"institue_name": "PEA",
"location": "Thapathali",
"number": "22131",
"scholarships": {
"available": "True",
"criteria": "Should have more than ........."
},
"additional_details": {
"additional_courses": "Medical Entrance Preparation"
}
},
"institute_2": {
"institue_name": "SEA",
"location": "Thapathali",
"number": "20131",
"scholarships": {
"available": "True",
"criteria": "Should have more than ........."
},
"additional_details": {
"additional_courses": "Medical Entrance Preparation"
}
}
}
},
"Doctor": {
"special_notes": {
"note_title": "Join top colleges to have a better environment"
},
"has_subfields": "True",
"subfields": {
"subfield_1": "Computer Engineer",
"subfield_2": "Electrical Engineer",
"subfield_3": "IT Engineer",
"subfield_4": "BioMedical Engineer"
},
"entrance_exams": "True",
"competition": "High",
"entrance_institutes": {
"available_institues": "14",
"starting_price": "12135",
"institute_1": {
"institue_name": "PEA",
"location": "Thapathali",
"number": "22131",
"scholarships": {
"available": "True",
"criteria": "Should have more than ........."
},
"additional_details": {
"additional_courses": "Medical Entrance Preparation"
}
},
"institute_2": {
"institue_name": "SEA",
"location": "Thapathali",
"number": "20131",
"scholarships": {
"available": "True",
"criteria": "Should have more than ........."
},
"additional_details": {
"additional_courses": "Medical Entrance Preparation"
}
}
}
},
"IT Officer": {
"special_notes": {
"note_title": "Join top colleges to have a better environment"
},
"has_subfields": "False",
"entrance_exams": "False",
"competition": "Low"
}
}
}
}''';
Map<String, dynamic> jsonMap = jsonDecode(jsonFile);
print(jsonMap);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment