1
Answer

how to convert json data with multiple arrays to list in c#

how to convert json data with multiple arrays to list in c#
 
json data :-
 
 
[ { "resultList": [ { "channelType": "", "duration": "2:29:30", "episodeno": 0, "genre": "Drama", "genreList": [ "Drama" ], "genres": [ { "personName": "Drama" } ], "id": 1204, "language": "Hindi", "name": "The Great Target", "productId": 1204, "productMasterId": 1203, "productMasterName": "The Great Target", "productName": "The Great Target", "productTypeId": 1, "productTypeName": "Movie", "rating": 3, "releaseyear": "2005", "showGoodName": "Movies ", "views": 8333 }, { "channelType": "", "duration": "2:30:30", "episodeno": 0, "genre": "Romance", "genreList": [ "Romance" ], "genres": [ { "personName": "Romance" } ], "id": 1144, "language": "Hindi", "name": "Mere Sapnon Ki Rani", "productId": 1144, "productMasterId": 1143, "productMasterName": "Mere Sapnon Ki Rani", "productName": "Mere Sapnon Ki Rani", "productTypeId": 1, "productTypeName": "Movie", "rating": 3, "releaseyear": "1997", "showGoodName": "Movies ", "views": 6482 }, { "channelType": "", "duration": "2:34:07", "episodeno": 0, "genre": "Drama", "genreList": [ "Drama" ], "genres": [ { "personName": "Drama" } ], "id": 1520, "language": "Telugu", "name": "Satyameva Jayathe", "productId": 1520, "productMasterId": 1519, "productMasterName": "Satyameva Jayathe", "productName": "Satyameva Jayathe", "productTypeId": 1, "productTypeName": "Movie", "rating": 3, "releaseyear": "2004", "showGoodName": "Movies ", "views": 9910 } ], "resultSize": 1171, "pageIndex": "1" } ]
 

Answers (1)

0
Photo of Ryan Alford
NA 2.3k 891.7k 16y
Instead of using the "Browse" tab, use the "Project" tab to add a reference.
0
Photo of Stefan
NA 624 0 16y
You don't have to have both in the solution explorer. Open the main project you will be using. In the solution explorer, right-click the references folder. Click "Add Reference...". In the pop up, select the browse tab. Browse the project folder of the project you want to call from. Go to the debug folder and select the .exe or .dll of your project. Select "OK". You should now see the name of that project in your references folder. Add it to your namespaces (i.e. "using MyProject"). Now simply call the method the way you normally would (i.e. "MyProject.Class1.Method1();").

Alternatively, Visual Studio has an option to add a project to your current solution.

Hope this helps!