I apologize if this question has been asked before, but here goes:
I want to specify dynamic field names for the Newtonsoft.JSON serializer.
Example: For the sake of demonstration purposes, say a basic login system with user details stored in JSON files. Authentication details would be stored in this manner:
{
"username": "password"
}
How would I specify what to put in the field name before I serialize the JSON?