Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
{ "connectors": [{
"SCHEMA_TABLE_NAME": "SC_MSSL_375",
"NO_OF_COLUMNS": 2,
"SOURCE_CONNECTION_ID": 3,
"LASTSCHEDULEDON": null,
"CLIENT_ID": 0,
"LICENSE_REQUIRED": "0",
"DATASET_ID": "3ad92fbb-a3a7-4cf6-a562-91836695b582",
"CONNECTOR_ID": 20,
"NAME": "11 demo large 2",
"DATA_TABLE_NAME": "DS_MSSL_375",
"SCHEDULE_TABLE_NAME": "SH_MSSL_375",
"CONNECTOR_LOGO_L": "small_logos/logos/sqlserver.png",
"CONNECTOR_LOGO_S": "/sqlserver.png",
"JOB_STATUS": "Successful",
"CATEGORY": "Database",
"CREATEDON": 1473568076000,
"ROW_ID": 375,
"LASTRUNON": 1473568076000,
"NO_OF_ROWS": 16450,
"DESTINATION_CONNECTION_ID": 3,
"LAST_UPDATED_ON": 1473568076000,
"DESCRIPTION": "11",
"SCHEDULE_CRON": null,
"CONNECTORNAME": "MSSQL",
"CREATED_BY": "zp861"
}, {
"SCHEMA_TABLE_NAME": "SC_MSSL_362",
"NO_OF_COLUMNS": 1,
"SOURCE_CONNECTION_ID": 3,
"LASTSCHEDULEDON": null,
"CLIENT_ID": 0,
"LICENSE_REQUIRED": "0",
"DATASET_ID": "14da9f02-271b-4a03-b50a-9d30d1109a18",
"CONNECTOR_ID": 20,
"NAME": "test error",
"DATA_TABLE_NAME": "DS_MSSL_362",
"SCHEDULE_TABLE_NAME": "SH_MSSL_362",
"CONNECTOR_LOGO_L": "small_logos/logos/sqlserver.png",
"CONNECTOR_LOGO_S": "/sqlserver.png",
"JOB_STATUS": "Failed",
"CATEGORY": "Database",
"CREATEDON": 1473464152000,
"ROW_ID": 362,
"LASTRUNON": 1473467021000,
"NO_OF_ROWS": null,
"DESTINATION_CONNECTION_ID": 3,
"LAST_UPDATED_ON": 1473464152000,
"DESCRIPTION": "error",
"SCHEDULE_CRON": null,
"CONNECTORNAME": "MSSQL",
"CREATED_BY": "zp861"
}]
}

What I have tried:

get the type of data which type of data in each value we having?
Posted
Updated 17-Oct-16 22:44pm
Comments
Suvendu Shekhar Giri 15-Oct-16 10:55am    
..and what have you tried so far?
santosh.yadav198613 17-Oct-16 7:01am    
Check this of it helps
http://javascript.info/tutorial/type-detection
Keith Barrow 17-Oct-16 18:21pm    
Why do you want to do this? In JavaScript it is normally unecessary to need to worry about the exact data type - it's possible you are trying to solve a problem which does not exist, which is why I'm asking.

1 solution

get the json property and use typeof
C#
var json = { Col1: 1, Col2: 'text', Col3: null, Col4: true };
typeof (json.Col1); // number
typeof (json.Col2); // string
typeof (json.Col3); // object
typeof (json.Col4); // boolean
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900