我有以下 JSON 字符串:
{
"screen": {
"@id": "12345",
"@name": "My Screening Questionnaire",
"@successful": "True",
"question": [
{
"@id": "123",
"@type": "MultipleChoiceOneAnswer",
"@text": "What is your current work status?",
"answer": [
{
"@id": "1",
"@selected": "True",
"#text": "Australian citizen"
},
{
"@id": "2",
"#text": "NZ citizen"
},
{
"@id": "3",
"#text": "Australian permanent resident"
},
{
"@id": "4",
"#text": "NZ permanent resident"
},
{
"@id": "5",
"#text": "Australian work visa"
},
{
"@id": "6",
"#text": "NZ work visa"
},
{
"@id": "7",
"#text": "Holiday working visa"
},
{
"@id": "8",
"#text": "Other"
}
]
},
{
"@id": "124",
"@type": "MultipleChoiceOneAnswer",
"@text": "When are you available to begin employment?",
"answer": [
{
"@id": "1",
"@selected": "True",
"#text": "Now"
},
{
"@id": "2",
"#text": "2 weeks"
},
{
"@id": "3",
"#text": "1 month"
},
{
"@id": "4",
"#text": "1 –2 months"
},
{
"@id": "5",
"#text": "3 or more months"
}
]
},
{
"@id": "125",
"@type": "Text",
"@text": "Why do you consider yourself to be a suitable candidate for this position?",
"answer": {
"@id": "1",
"@selected": "True",
"#text": "I’m great"
}
}
]
}
}
我想使用 Newtonsoft 将其转换为对象模型
JsonConvert.DeserializeObject:T:(JsonStringText)
对象模型的结构是什么?
谢谢。
您可以参考此处返回的 JSON 模型:
http://developer.seek.com.au/docs/partner-api/api-methods/applicationexport/get-screen