json-flatfile-datastore icon indicating copy to clipboard operation
json-flatfile-datastore copied to clipboard

Add optional _last_modified metadata to JSON

Open ttu opened this issue 7 years ago • 0 comments

Option to add last modified timestamp for each object.

{
  "user": [
    {
      "id": 1,
      "name": "James",
      "age": 40,
      "location": "NY",
      "work": {
        "name": "ACME",
        "location": "NY"
      },
      "_last_modified": "2017-10-14T09:45:10"
    },
    {
      "id": 2,
      "name": "Phil",
      "age": 25,
      "location": "London",
      "work": {
        "name": "Box Company",
        "location": "London"
      },
      "_last_modified":  "2017-10-15T12:12:12"
    }

Typed models need to have property defined

public DateTime _last_modified { get; set; }

Feature branch: https://github.com/ttu/json-flatfile-datastore/tree/add-last-modified

ttu avatar Oct 15 '17 06:10 ttu