Skip to content

Instantly share code, notes, and snippets.

@jamesbar2
Last active July 1, 2016 07:05
Show Gist options
  • Save jamesbar2/7695af3cc37d7f5f80edf34303a2054a to your computer and use it in GitHub Desktop.
Save jamesbar2/7695af3cc37d7f5f80edf34303a2054a to your computer and use it in GitHub Desktop.
JSON Output from ASP.NET WebAPI (modified to fit example, GUID zero'd out)
[
{
"myPrimaryObjectId": "00000000-0000-0000-0000-000000000000",
"name": "Item 98",
"myObjectDescription": null,
"numberOfOccurrences": 2,
"positiveResponsePercentage": 0,
"secondaryObjects": [
{
"mySecondaryObjectId": 1,
"dateRecorded": "2016-06-04T00:03:04.433",
"rating": 1,
"userRemarks": "Tastes like marzipan."
}
]
},
{
"myPrimaryObjectId": "00000000-0000-0000-0000-000000000000",
"name": "Item 99",
"myObjectDescription": null,
"numberOfOccurrences": 1,
"positiveResponsePercentage": 100,
"secondaryObjects": [
{
"mySecondaryObjectId": 2,
"dateRecorded": "2016-06-04T00:08:09.383",
"rating": 1,
"userRemarks": null
}
]
},
{
"myPrimaryObjectId": "00000000-0000-0000-0000-000000000000",
"name": "Item 100",
"myObjectDescription": null,
"numberOfOccurrences": 2,
"positiveResponsePercentage": 100,
"secondaryObjects": [
{
"mySecondaryObjectId": 6,
"dateRecorded": "2016-06-04T00:20:06.357",
"rating": 1,
"userRemarks": null
}
]
},
{
"myPrimaryObjectId": "00000000-0000-0000-0000-000000000000",
"name": "Item 101",
"myObjectDescription": null,
"numberOfOccurrences": 7,
"positiveResponsePercentage": 100,
"secondaryObjects": []
},
{
"myPrimaryObjectId": "00000000-0000-0000-0000-000000000000",
"name": "Item 102",
"myObjectDescription": null,
"numberOfOccurrences": 3,
"positiveResponsePercentage": 100,
"secondaryObjects": [
{
"mySecondaryObjectId": 68,
"dateRecorded": "2016-06-21T18:21:33.43",
"rating": 4,
"userRemarks": null
}
]
},
{
"myPrimaryObjectId": "00000000-0000-0000-0000-000000000000",
"name": "Item 127",
"myObjectDescription": null,
"numberOfOccurrences": 15,
"positiveResponsePercentage": 100,
"secondaryObjects": [
{
"mySecondaryObjectId": 78,
"dateRecorded": "2016-06-22T00:25:49.687",
"rating": 1,
"userRemarks": null
},
{
"mySecondaryObjectId": 77,
"dateRecorded": "2016-06-21T23:52:55.217",
"rating": 4,
"userRemarks": null
},
{
"mySecondaryObjectId": 76,
"dateRecorded": "2016-06-21T23:49:03.483",
"rating": 1,
"userRemarks": null
},
{
"mySecondaryObjectId": 75,
"dateRecorded": "2016-06-21T23:31:07.61",
"rating": 4,
"userRemarks": null
},
{
"mySecondaryObjectId": 74,
"dateRecorded": "2016-06-21T23:30:51.593",
"rating": 1,
"userRemarks": null
},
{
"mySecondaryObjectId": 73,
"dateRecorded": "2016-06-21T23:30:48.72",
"rating": 4,
"userRemarks": null
},
{
"mySecondaryObjectId": 72,
"dateRecorded": "2016-06-21T23:30:45.673",
"rating": 1,
"userRemarks": null
},
{
"mySecondaryObjectId": 71,
"dateRecorded": "2016-06-21T23:30:41.983",
"rating": 1,
"userRemarks": null
},
{
"mySecondaryObjectId": 70,
"dateRecorded": "2016-06-21T23:30:39.36",
"rating": 1,
"userRemarks": null
},
{
"mySecondaryObjectId": 69,
"dateRecorded": "2016-06-21T23:30:35.047",
"rating": 1,
"userRemarks": null
},
{
"mySecondaryObjectId": 17,
"dateRecorded": "2016-06-05T02:06:45.657",
"rating": 1,
"userRemarks": null
},
{
"mySecondaryObjectId": 16,
"dateRecorded": "2016-06-05T02:06:37.547",
"rating": 4,
"userRemarks": null
},
{
"mySecondaryObjectId": 15,
"dateRecorded": "2016-06-05T02:06:30.36",
"rating": 4,
"userRemarks": null
},
{
"mySecondaryObjectId": 14,
"dateRecorded": "2016-06-05T02:05:41.017",
"rating": 1,
"userRemarks": null
}
]
},
{
"myPrimaryObjectId": "00000000-0000-0000-0000-000000000000",
"name": "Item 129",
"myObjectDescription": null,
"numberOfOccurrences": 0,
"positiveResponsePercentage": 0,
"secondaryObjects": []
},
{
"myPrimaryObjectId": "00000000-0000-0000-0000-000000000000",
"name": "Item 130",
"myObjectDescription": "A mix of a 1, a 2, and a 9...plus 1",
"numberOfOccurrences": 0,
"positiveResponsePercentage": 0,
"secondaryObjects": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment