Hello Xander,
I have included a sample json file below.
While researching my question I came across the ArcREST package on github. In it's samples folder I found a script (query_agol_layer.py) that connects to a Feature Layer's json data. After some study of the python code, I was able to use the script to extract the lastEditDate information and convert it to a standard time format. The code also accesses other sections of the json data - the types section is one that I'm also interested in.
Here's the json file. LastEditDate is on line 11. To save space, I've deleted most of the drawingInfo section at line 44 and some other parts.
{
"currentVersion" : 10.3,
"id" : 0,
"name" : "<Name>",
"type" : "Feature Layer",
"displayField" : "<Display>",
"description" : "",
"copyrightText" : "",
"defaultVisibility" : true,
"editingInfo" : {
"lastEditDate" : 1433103130499
},
"relationships" : [],
"isDataVersioned" : false,
"supportsCalculate" : true,
"supportsAttachmentsByUploadId" : true,
"supportsRollbackOnFailureParameter" : true,
"supportsStatistics" : true,
"supportsAdvancedQueries" : true,
"supportsValidateSql" : true,
"supportsCoordinatesQuantization" : true,
"advancedQueryCapabilities" : {
"supportsPagination" : true,
"supportsQueryWithDistance" : true,
"supportsReturningQueryExtent" : true,
"supportsStatistics" : true,
"supportsOrderBy" : true,
"supportsDistinct" : true
},
"geometryType" : "esriGeometryPoint",
"minScale" : 0,
"maxScale" : 0,
"extent" : {
"xmin" : -20037507.842788249,
"ymin" : -30240971.458386172,
"xmax" : 20037507.842788249,
"ymax" : 30240971.458386205,
"spatialReference" : {
"wkid" : 102100,
"latestWkid" : 3857
}
},
"drawingInfo":{
.......
},
"allowGeometryUpdates" : true,
"hasAttachments" : false,
"htmlPopupType" : "esriServerHTMLPopupTypeAsHTMLText",
"hasM" : false,
"hasZ" : false,
"objectIdField" : "OBJECTID",
"globalIdField" : "GlobalID",
"typeIdField" : "Color",
"fields" : [
{
"name" : "OBJECTID",
"type" : "esriFieldTypeOID",
"alias" : "OBJECTID",
"sqlType" : "sqlTypeOther",
"nullable" : false,
"editable" : false,
"domain" : null,
"defaultValue" : null
},
{
"name" : "<FieldName>",
"type" : "esriFieldTypeInteger",
"alias" : "<FieldAlias>",
"sqlType" : "sqlTypeOther",
"nullable" : false,
"editable" : true,
"domain" :
{
"type" : "codedValue",
"name" : "Colors",
"codedValues" : [
{
"name" : "Red",
"code" : 1
},
{
"name" : "Yellow",
"code" : 2
}
]
},
"defaultValue" : null
}
],
"types" : [
{
"id" : 1,
"name" : "Red",
"domains" :
{
"Color" : {"type" : "inherited"}
},
"templates" : [
{
"name" : "Red",
"description" : "",
"drawingTool" : "esriFeatureEditToolPoint",
"prototype" : {
"attributes" : {
"Color" : 1,
"Note" : null
}
}
}
]
},
{
"id" : 2,
"name" : "Yellow",
"domains" :
{
"Color" : {"type" : "inherited"}
},
"templates" : [
{
"name" : "Yellow",
"description" : "",
"drawingTool" : "esriFeatureEditToolPoint",
"prototype" : {
"attributes" : {
"Color" : 2,
"Note" : null
}
}
}
]
}
],
"templates" : [],
"supportedQueryFormats" : "JSON",
"hasStaticData" : false,
"maxRecordCount" : 1000,
"capabilities" : "Create,Delete,Query,Update,Editing,Sync"
}