JSON to C# — list fields without sub-field names in json?
问题 Using Json.net (Newtonsoft.json), how can I define a C# class (or classes) to handle the json below? The 'data' field appears to be a list of level/description sub-fields but note they are not preceded by field names. The 'error' field appears to be a list of error-number/error-message sub-fields but note, they too, are not preceded by field names. { "status": "error", "data": [ { "warning" : "your input was wrong" } ], "error": [ { "373": "Error description goes here" } ] } This class