c# - Best way to create json with 100+ keys -
i have create json object contains 100+ keys , of them start number (2nd_). because of that, can't have object use template, had set way until pre-fixed numeric keys added web service. used have function fill object reflection need find new way.
is there's way have dictionary keys need start filling data need? template dictionary or else can more elegant?
i tried dataannotations newtonsoft json doesn't support "display name" attribute.
btw, it's uwp app, has .net core
thanks!
i resolved using jsonproperty[("1st_key")] data annotation. way still can have class objects mapped , have numeric key web service requires
Comments
Post a Comment