IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

VB.NET Discussion :

Héritage de classe ?


Sujet :

VB.NET

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre expérimenté
    Avatar de zooffy
    Homme Profil pro
    Chef de projet MOA
    Inscrit en
    Août 2004
    Messages
    3 895
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Chef de projet MOA
    Secteur : Bâtiment

    Informations forums :
    Inscription : Août 2004
    Messages : 3 895
    Par défaut Héritage de classe ?
    Bonjour tout le monde.

    Je viens vers vous car je n'arrive pas à comprendre la documentation sur le sujet. Je tente de faire un truc que j'ai jamais fait de ma vie, du coup, je suis paumé.
    Je travaille sur un sujet perso qui se base sur des fichiers JSON venant de IMDB. Je vais mettre un exemple en fin de message.
    Pour travailler les data dans ces fichiers, j'ai créer une classe et je bloque sur une sorte de factorisation de la chose.

    Comme vous le verrez les actors ou writers sont définis avec des donnée ID et Name alors que les Genres ou les Country sont définis avec des données Key et Value.
    Je voudrais trouver le moyen de faire une classe qui mix tout cela et donne, in fine, un seul type d'objet défini avec Key et Value.

    Et je ne comprends pas du tout comment faire.

    Voici ma classe actuelle dans la quel j'ai déjà factorisé tous els truc avec ID Name d'un côté, tous les truc avec Key Value de l'autre.
    J'ai fait un poil d'héritage pour ceux qui utilisent ID et Name et un ou deux paramètre de plus.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    Public Class Film
        Public Property id As String
        Public Property title As String
        Public Property originalTitle As String
        Public Property fullTitle As String
        Public Property type As String
        Public Property year As String
        Public Property image As String
        Public Property releaseDate As String
        Public Property runtimeMins As String
        Public Property runtimeStr As String
        Public Property plot As String
        Public Property plotLocal As String
        Public Property plotLocalIsRtl As Boolean
        Public Property awards As String
        Public Property directors As String
        Public Property directorList As ListIdName()
        Public Property writers As String
        Public Property writerList As ListIdName()
        Public Property stars As String
        Public Property starList As ListIdName()
        Public Property actorList As ActorListH()
        Public Property fullCast As FullCast
        Public Property genres As String
        Public Property genreList As ListKeyValue()
        Public Property companies As String
        Public Property companyList As ListIdName()
        Public Property countries As String
        Public Property countryList As ListKeyValue()
        Public Property languages As String
        Public Property languageList As ListKeyValue()
        Public Property contentRating As String
        Public Property imDbRating As String
        Public Property imDbRatingVotes As String
        Public Property metacriticRating As String
        Public Property ratings As Object
        Public Property wikipedia As Object
        Public Property posters As Object
        Public Property images As Object
        Public Property trailer As Object
        Public Property boxOffice As BoxOffice
        Public Property tagline As Object
        Public Property keywords As String
        Public Property keywordList As String()
        Public Property similars As Object()
        Public Property tvSeriesInfo As Object
        Public Property tvEpisodeInfo As Object
        Public Property errorMessage As Object
    End Class
     
    'Ce sont ces deux classes que je voudrais mixer
    Public Class ListIdName
        Public Property id As String
        Public Property name As String
    End Class
    Public Class ListKeyValue
        Public Property Key As String
        Public Property Value As String
    End Class
     
     
    Public Class Item
        Inherits ListIdName
        Public Property description As String
    End Class
    Public Class ActorListH
        Inherits ListIdName
        Public Property image As String
        Public Property asCharacter As String
    End Class
    Public Class ListjobItems
        Public Property job As String
        Public Property items As Item()
    End Class
    Public Class FullCast
        Public Property imDbId As String
        Public Property title As String
        Public Property fullTitle As String
        Public Property type As String
        Public Property year As String
        Public Property directors As ListjobItems
        Public Property writers As ListjobItems
        Public Property actors As ActorListH()
        Public Property others As ListjobItems()
        Public Property errorMessage As String
    End Class
    Public Class BoxOffice
        Public Property budget As String
        Public Property openingWeekendUSA As String
        Public Property grossUSA As String
        Public Property cumulativeWorldwideGross As String
    End Class
    J'ai tenté un truc avec des Get et des Set qui passe la valeur de l'un dans l'autre, mais cela n'a pas fonctionné.
    Mais surtout je ne trouve pas réellement de documentation qui parle précisément de ce que je veux faire, peut-être que c'est juste pas possible en fait.
    Ou alors il faut que je passe par un objet intermédiaire ?

    Merci pour votre aide

    Je ne peux pas mettre un fichier JSON en attachement, alors je le pose sous forme de code ici, désolé car c'est un peu long :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    1033
    1034
    1035
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    1046
    1047
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
    1058
    1059
    1060
    1061
    1062
    1063
    1064
    1065
    1066
    1067
    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    1116
    1117
    1118
    1119
    1120
    1121
    1122
    1123
    1124
    1125
    1126
    1127
    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    1181
    1182
    1183
    1184
    1185
    1186
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    1198
    1199
    1200
    1201
    1202
    1203
    1204
    1205
    1206
    1207
    1208
    1209
    1210
    1211
    1212
    1213
    1214
    1215
    1216
    1217
    1218
    1219
    1220
    1221
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    1238
    1239
    1240
    1241
    1242
    1243
    1244
    1245
    1246
    1247
    1248
    1249
    1250
    1251
    1252
    1253
    1254
    1255
    1256
    1257
    1258
    1259
    1260
    1261
    1262
    1263
    1264
    1265
    1266
    1267
    1268
    1269
    1270
    1271
    1272
    1273
    1274
    1275
    1276
    1277
    1278
    1279
    1280
    1281
    1282
    1283
    1284
    1285
    1286
    1287
    1288
    1289
    1290
    1291
    1292
    1293
    1294
    1295
    1296
    1297
    1298
    1299
    1300
    1301
    1302
    1303
    1304
    1305
    1306
    1307
    1308
    1309
    1310
    1311
    1312
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    1323
    1324
    1325
    1326
    1327
    1328
    1329
    1330
    1331
    1332
    1333
    1334
    1335
    1336
    1337
    1338
    1339
    1340
    1341
    1342
    1343
    1344
    1345
    1346
    1347
    1348
    1349
    1350
    1351
    1352
    1353
    1354
    1355
    1356
    1357
    1358
    1359
    1360
    1361
    1362
    1363
    1364
    1365
    1366
    1367
    1368
    1369
    1370
    1371
    1372
    1373
    1374
    1375
    1376
    1377
    1378
    1379
    1380
    1381
    1382
    1383
    1384
    1385
    1386
    1387
    1388
    1389
    1390
    1391
    1392
    1393
    1394
    1395
    1396
    1397
    1398
    1399
    1400
    1401
    1402
    1403
    1404
    1405
    1406
    1407
    1408
    1409
    1410
    1411
    1412
    1413
    1414
    1415
    1416
    1417
    1418
    1419
    1420
    1421
    1422
    1423
    1424
    1425
    1426
    1427
    1428
    1429
    1430
    1431
    1432
    1433
    1434
    1435
    1436
    1437
    1438
    1439
    1440
    1441
    1442
    1443
    1444
    1445
    1446
    1447
    1448
    1449
    1450
    1451
    1452
    1453
    1454
    1455
    1456
    1457
    1458
    1459
    1460
    1461
    1462
    1463
    1464
    1465
    1466
    1467
    1468
    1469
    1470
    1471
    1472
    1473
    1474
    1475
    1476
    1477
    1478
    1479
    1480
    1481
    1482
    1483
    1484
    1485
    1486
    1487
    1488
    1489
    1490
    1491
    1492
    1493
    1494
    1495
    1496
    1497
    1498
    1499
    1500
    1501
    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
    1512
    1513
    1514
    1515
    1516
    1517
    1518
    1519
    1520
    1521
    1522
    1523
    1524
    1525
    1526
    1527
    1528
    1529
    1530
    1531
    1532
    1533
    1534
    1535
    1536
    1537
    1538
    1539
    1540
    1541
    1542
    1543
    1544
    1545
    1546
    1547
    1548
    1549
    1550
    1551
    1552
    1553
    1554
    1555
    1556
    1557
    1558
    1559
    1560
    1561
    1562
    1563
    1564
    1565
    1566
    {
        "id": "tt0055928",
        "title": "Dr. No",
        "originalTitle": "",
        "fullTitle": "Dr. No (1962)",
        "type": "Movie",
        "year": "1962",
        "image": "https://imdb-api.com/images/original/MV5BMWRkZTI4NzktYjA4Yi00ZjE0LTgzOWQtYzJlMTkyOTU1ODRmXkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6791_AL_.jpg",
        "releaseDate": "1962-10-10",
        "runtimeMins": "110",
        "runtimeStr": "1h 50min",
        "plot": "James Bond 007 is Britain's top agent, and is on an exciting mission, to solve the mysterious murder of a fellow agent. The task sends him to Jamaica, where he joins forces with Quarrel and a loyal C.I.A. Agent, Felix Leiter. While dodging tarantulas, \"fire breathing dragons\", and a trio of assassins, known as \"the three blind mice\". Bond meets up with the beautiful Honey Ryder and goes face to face with the evil Dr. No.",
        "plotLocal": "Le chef des services secrets de Sa Majesté britannique, « M », envoie en mission Ã* la Jamaïque l'agent spécial 007, James Bond, enquêter sur la disparition d'un de ses collègues. L'espion va affronter la puissance maléfique de Spectre, organisation criminelle qui vise Ã* la domination du monde, personnifiée par le redoutable Dr No. Au gré de ses aventures il rencontrera la sublime Honey, qui surgit de l'eau vêtue d'un bikini blanc.",
        "plotLocalIsRtl": false,
        "awards": "4 wins & 4 nominations.",
        "directors": "Terence Young",
        "directorList": [
            {
                "id": "nm0950109",
                "name": "Terence Young"
            }
        ],
        "writers": "Richard Maibaum, Johanna Harwood, Berkely Mather, Ian Fleming, Wolf Mankowitz, Terence Young",
        "writerList": [
            {
                "id": "nm0537363",
                "name": "Richard Maibaum"
            },
            {
                "id": "nm0367820",
                "name": "Johanna Harwood"
            },
            {
                "id": "nm0558435",
                "name": "Berkely Mather"
            },
            {
                "id": "nm0001220",
                "name": "Ian Fleming"
            }, {
                "id": "nm0542554",
                "name": "Wolf Mankowitz"
            }, {
                "id": "nm0950109",
                "name": "Terence Young"
            }
        ],
        "stars": "Sean Connery, Ursula Andress, Bernard Lee, Joseph Wiseman",
        "starList": [
            {
                "id": "nm0000125",
                "name": "Sean Connery"
            }, {
                "id": "nm0000266",
                "name": "Ursula Andress"
            }, {
                "id": "nm0496866",
                "name": "Bernard Lee"
            }, {
                "id": "nm0936476",
                "name": "Joseph Wiseman"
            }
        ],
        "actorList": [
            {
                "id": "nm0000125",
                "image": "https://imdb-api.com/images/original/MV5BMzcwNTM4MzctYjQzMi00NTA2LTljYWItNTYzNmE1MTYxN2RlXkEyXkFqcGdeQXVyMDI2NDg0NQ@@._V1_Ratio0.7727_AL_.jpg",
                "name": "Sean Connery",
                "asCharacter": "James Bond"
            },
            {
                "id": "nm0000266",
                "image": "https://imdb-api.com/images/original/MV5BMTAxMjE4NjMzNDReQTJeQWpwZ15BbWU3MDk4OTU2MDQ@._V1_Ratio0.7727_AL_.jpg",
                "name": "Ursula Andress",
                "asCharacter": "Honey Ryder"
            },
            {
                "id": "nm0936476",
                "image": "https://imdb-api.com/images/original/MV5BMTk0NzI5MDY3NV5BMl5BanBnXkFtZTYwODQ4NjU2._V1_Ratio1.0000_AL_.jpg",
                "name": "Joseph Wiseman",
                "asCharacter": "Dr. No"
            },
            {
                "id": "nm0520437",
                "image": "https://imdb-api.com/images/original/MV5BMjEzMjI5MzYzN15BMl5BanBnXkFtZTYwNTU2OTQ2._V1_Ratio0.7273_AL_.jpg",
                "name": "Jack Lord",
                "asCharacter": "Felix Leiter"
            }, {
                "id": "nm0496866",
                "image": "https://imdb-api.com/images/original/MV5BMjA1NTc3MTAxMV5BMl5BanBnXkFtZTYwNTM5NjU2._V1_Ratio0.7273_AL_.jpg",
                "name": "Bernard Lee",
                "asCharacter": "M."
            }, {
                "id": "nm0206060",
                "image": "https://imdb-api.com/images/original/MV5BMTM1NjM2NjQ0Ml5BMl5BanBnXkFtZTcwNzkzNzQzNA@@._V1_Ratio0.9545_AL_.jpg",
                "name": "Anthony Dawson",
                "asCharacter": "Professor Dent"
            }, {
                "id": "nm0551243",
                "image": "https://imdb-api.com/images/original/MV5BMTgxNTMzMjMwNl5BMl5BanBnXkFtZTcwMTIzMDMxOA@@._V1_Ratio0.7727_AL_.jpg",
                "name": "Zena Marshall",
                "asCharacter": "Miss Taro"
            }, {
                "id": "nm0457839",
                "image": "https://imdb-api.com/images/original/MV5BMTI4ZGM4ZjgtYzk1YS00ODBhLWE2YjktNzhkMjdiY2UwMmQxXkEyXkFqcGdeQXVyMTc4MzI2NQ@@._V1_Ratio1.0000_AL_.jpg",
                "name": "John Kitzmiller",
                "asCharacter": "Quarrel (as John Kitzmuller)"
            }, {
                "id": "nm0311013",
                "image": "https://imdb-api.com/images/original/MV5BMjE1MzIxMTA0Ml5BMl5BanBnXkFtZTcwOTY3MzkwOA@@._V1_Ratio0.8182_AL_.jpg",
                "name": "Eunice Gayson",
                "asCharacter": "Sylvia Trench"
            }, {
                "id": "nm0561755",
                "image": "https://imdb-api.com/images/original/MV5BMTIxMTM3MTQyNF5BMl5BanBnXkFtZTYwOTQ4NjU2._V1_Ratio1.0000_AL_.jpg",
                "name": "Lois Maxwell",
                "asCharacter": "Miss Moneypenny"
            }, {
                "id": "nm0078252",
                "image": "https://imdb-api.com/images/original/MV5BNTEyMzYwODE1Ml5BMl5BanBnXkFtZTYwMDY4MzEz._V1_Ratio0.8182_AL_.jpg",
                "name": "Peter Burton",
                "asCharacter": "Major Boothroyd"
            }, {
                "id": "nm0793553",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Yvonne Shima",
                "asCharacter": "Sister Lily"
            }, {
                "id": "nm0596304",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Michel Mok",
                "asCharacter": "Sister Rose"
            }, {
                "id": "nm0506759",
                "image": "https://imdb-api.com/images/original/MV5BNWNiZTgwN2YtNWQwMy00NWU1LWIxNTktYjcwNjkzOGFhZGNiXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                "name": "Marguerite LeWars",
                "asCharacter": "Annabel Chung - Photographer (as Margaret Le Wars) (as Marguerite Lewars: end credits)"
            }, {
                "id": "nm0288126",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "William Foster-Davis",
                "asCharacter": "Superintendent Duff (as Wm. Foster-Davis)"
            }, {
                "id": "nm0444180",
                "image": "https://imdb-api.com/images/original/MV5BNDg3MzU3NDItYTkzYi00YTQxLWExYTEtYzQzZWJkM2YxMDliXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.5455_AL_.jpg",
                "name": "Dolores Keator",
                "asCharacter": "Mary Trueblood"
            }, {
                "id": "nm0141883",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Reggie Carter",
                "asCharacter": "Mr. Jones (as Reginald Carter)"
            }, {
                "id": "nm0085108",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Louis Blaazer",
                "asCharacter": "Pleydell-Smith"
            }, {
                "id": "nm0123552",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Colonel Burton",
                "asCharacter": "General Potter"
            }, {
                "id": "nm6088119",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Abbot Anderson",
                "asCharacter": "Crab Key Guard (uncredited)"
            }, {
                "id": "nm0037393",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Jack Arrow",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm1625265",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Nigel Bernard",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm6088118",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Keith Binns",
                "asCharacter": "Crab Key Guard (uncredited)"
            }, {
                "id": "nm0085889",
                "image": "https://imdb-api.com/images/original/MV5BMmRhYzZlZWQtMjRiOC00MDBkLWJhNDUtZWI4OGZjNTZlMGNjXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2727_AL_.jpg",
                "name": "Chris Blackwell",
                "asCharacter": "Henchman Jumping Off Dock into Water (uncredited)"
            }, {
                "id": "nm6088120",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Kes Chin",
                "asCharacter": "Dragon Guard (uncredited)"
            }, {
                "id": "nm0157716",
                "image": "https://imdb-api.com/images/original/MV5BMTQzMTc4MTE4MF5BMl5BanBnXkFtZTgwMTU3MjU5MjE@._V1_Ratio1.3182_AL_.jpg",
                "name": "Anthony Chinn",
                "asCharacter": "Decontamination Technician (uncredited)"
            }, {
                "id": "nm0183646",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Diana Coupland",
                "asCharacter": "Honey Ryder - Singing Voice (voice) (uncredited)"
            }, {
                "id": "nm0184443",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Eric Coverley",
                "asCharacter": "1st Three Blind Mice Assassin (uncredited)"
            }, {
                "id": "nm1071552",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Reggie de Beer",
                "asCharacter": "Casino Patron (uncredited)"
            }, {
                "id": "nm1567128",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Alicia Deane",
                "asCharacter": "Woman in Dr. No's Lair (uncredited)"
            }, {
                "id": "nm3783642",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Charles Edghill",
                "asCharacter": "2nd Three Blind Mice Assassin (uncredited)"
            }, {
                "id": "nm0254080",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Margaret Ellery",
                "asCharacter": "Stewardess (uncredited)"
            }, {
                "id": "nm2913075",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Joe Enrikie",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm6088116",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Lancelot Evans",
                "asCharacter": "Crab Key Dock Guard (uncredited)"
            }, {
                "id": "nm0263129",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Peter Evans",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm6088114",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Hilary Farish",
                "asCharacter": "Stewardess (uncredited)"
            }, {
                "id": "nm2148856",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Charles Gilliard",
                "asCharacter": "Le Cercle Waiter (uncredited)"
            }, {
                "id": "nm0324916",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Alan Gold",
                "asCharacter": "Croupier at La Cercle (uncredited)"
            }, {
                "id": "nm8646951",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Arthur Goodman",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm3134822",
                "image": "https://imdb-api.com/images/original/MV5BZjIyMDY0OWYtZDhhNi00N2NkLTk1OGYtZmEzMTQ5OGY2ZjQyXkEyXkFqcGdeQXVyMjUyNDk2ODc@._V1_Ratio1.2273_AL_.jpg",
                "name": "Victor Harrington",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm0369048",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "John Hatton",
                "asCharacter": "Radio Operator (uncredited)"
            }, {
                "id": "nm0385149",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "George Hilsdon",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm0424138",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Billy John",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm1263620",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Gerry Judge",
                "asCharacter": "Le Cercle Waiter (uncredited)"
            }, {
                "id": "nm8135126",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Pat Judge",
                "asCharacter": "Le Cercle Waiter (uncredited)"
            }, {
                "id": "nm0448429",
                "image": "https://imdb-api.com/images/original/MV5BZmQ2YTkyMzgtNzI2MS00OGU0LTliYzQtY2M2OWYxZjU2YTgzXkEyXkFqcGdeQXVyMjk3NTUyOTc@._V1_Ratio1.8636_AL_.jpg",
                "name": "Juba Kennerley",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm0494050",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Bettine Le Beau",
                "asCharacter": "Professor Dent's Secretary (uncredited)"
            }, {
                "id": "nm0496837",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Arnold Lee",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm0496930",
                "image": "https://imdb-api.com/images/original/MV5BNWM3ZDA5ZDUtN2QxYi00YzE4LWEyNzQtNGI3MTM0OTNlMDEzL2ltYWdlL2ltYWdlXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                "name": "Byron Lee",
                "asCharacter": "Singer at Puss Feller's (uncredited)"
            }, {
                "id": "nm0498543",
                "image": "https://imdb-api.com/images/original/MV5BZmUxNjQ1ZjUtNmI1ZC00ZTVjLThiNDQtYjU3YjIyZjEzZmJjXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2727_AL_.jpg",
                "name": "George Leech",
                "asCharacter": "Decontamination Technician (uncredited)"
            }, {
                "id": "nm0504431",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Dan Lester",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm1527991",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Rick Lester",
                "asCharacter": "Guard (uncredited)"
            }, {
                "id": "nm2283932",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Henry Lopez",
                "asCharacter": "3rd Three Blind Mice Assassin (uncredited)"
            }, {
                "id": "nm10968631",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Keith Lyn",
                "asCharacter": "Vocalist - the Dragonaires (uncredited)"
            }, {
                "id": "nm4578224",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Louis Marriott",
                "asCharacter": "Dragon Guard (uncredited)"
            }, {
                "id": "nm8742461",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Colin McKenzie",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm0588131",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Count Prince Miller",
                "asCharacter": "Nightclub Dancer (uncredited)"
            }, {
                "id": "nm0605043",
                "image": "https://imdb-api.com/images/original/MV5BZWMxODEyYjEtNTQ5ZC00ZTA2LTg1NGMtNGExMzUzNzg4MTc0XkEyXkFqcGdeQXVyMzI5NDcxNzI@._V1_Ratio0.7727_AL_.jpg",
                "name": "Stanley Morgan",
                "asCharacter": "Concierge at Le Cercle (uncredited)"
            }, {
                "id": "nm0610319",
                "image": "https://imdb-api.com/images/original/MV5BMzA5ZmEyZDQtZTUwZi00NzE0LTk4YzQtYTc5ZDBmMGIyMTgxXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                "name": "Tim Moxon",
                "asCharacter": "Professor John Strangways (uncredited)"
            }, {
                "id": "nm0659837",
                "image": "https://imdb-api.com/images/original/MV5BMjE3OWY4MmQtYjI2Yi00NjhiLTkzZTktYmM1M2YyMzM3ZGRmXkEyXkFqcGdeQXVyMzAwOTU1MTk@._V1_Ratio1.2273_AL_.jpg",
                "name": "Malou Pantera",
                "asCharacter": "Hotel Receptionist (uncredited)"
            }, {
                "id": "nm0668463",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Willie Payne",
                "asCharacter": "Johnny - Hotel Worker (uncredited)"
            }, {
                "id": "nm0695965",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Lester Pendergast",
                "asCharacter": "Puss Feller (uncredited)"
            }, {
                "id": "nm6088115",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Carol Reckford",
                "asCharacter": "Dent's Boat Captain (uncredited)"
            }, {
                "id": "nm0717374",
                "image": "https://imdb-api.com/images/original/MV5BMjczMzU4MjM5Ml5BMl5BanBnXkFtZTgwMzk0NjU3MTE@._V1_Ratio1.2727_AL_.jpg",
                "name": "Milton Reid",
                "asCharacter": "Dr. No's Guard (uncredited)"
            }, {
                "id": "nm0726403",
                "image": "https://imdb-api.com/images/original/MV5BZjc0NTJkOTMtNjQ2Ni00ZjcwLWEzMzctYzdkNDE0YWJiNjUzXkEyXkFqcGdeQXVyMzI2MDEwNA@@._V1_Ratio0.8182_AL_.jpg",
                "name": "Robert Rietty",
                "asCharacter": "John Strangways / Superintendent Duff (voice) (uncredited)"
            }, {
                "id": "nm0732345",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Adrian Robinson",
                "asCharacter": "Hearse Driver (uncredited)"
            }, {
                "id": "nm6088117",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Carey Robinson",
                "asCharacter": "Guard with Loudspeaker (uncredited)"
            }, {
                "id": "nm0761788",
                "image": "https://imdb-api.com/images/original/MV5BN2ViNDRlY2MtZTBhNi00M2Y0LTkwNjktNTYyYjk0MTZmMWY4XkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                "name": "Harold Sanderson",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm7942120",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Bunny Seaman",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm1765163",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "John Sefton",
                "asCharacter": "Le Cercle Croupier (uncredited)"
            }, {
                "id": "nm0789871",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Maxwell Shaw",
                "asCharacter": "Communications Operator (uncredited)"
            }, {
                "id": "nm0799689",
                "image": "https://imdb-api.com/images/original/MV5BNzZjMTYxOWQtZGQ0ZS00NDljLTk3ZjAtNzFiNDU5NzkwNjdiXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                "name": "Bob Simmons",
                "asCharacter": "James Bond in Gunbarrel Sequence (uncredited)"
            }, {
                "id": "nm0802352",
                "image": "https://imdb-api.com/images/original/MV5BMjY5NTE1YzEtMjAwYS00YThmLWFkNmQtOGI1Mzg5MjEwNTBkXkEyXkFqcGdeQXVyMTI3MDk3MzQ@._V1_Ratio1.6364_AL_.jpg",
                "name": "Frank Singuineau",
                "asCharacter": "Hotel Waiter (uncredited)"
            }, {
                "id": "nm8757347",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "John Smart",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm0867112",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Graham Tonbridge",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm0886424",
                "image": "https://imdb-api.com/images/original/MV5BYTFlNzM3YzAtZWJkMS00YTIwLTgyNjktNzRiMzIyY2M2ZjlhXkEyXkFqcGdeQXVyNjUwNzk3NDc@._V1_Ratio0.7273_AL_.jpg",
                "name": "Nikki Van der Zyl",
                "asCharacter": "Honey Ryder / Sylvia Trench / Various (voice) (uncredited)"
            }, {
                "id": "nm0903747",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Robert Vossler",
                "asCharacter": "Le Cercle Waiter (uncredited)"
            }, {
                "id": "nm8698709",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "Pearl Walters",
                "asCharacter": "Le Cercle Patron (uncredited)"
            }, {
                "id": "nm1440312",
                "image": "https://imdb-api.com/images/original/nopicture.jpg",
                "name": "John Wilder",
                "asCharacter": "Le Cercle Cashier (uncredited)"
            }
        ],
        "fullCast": {
            "imDbId": "tt0055928",
            "title": "Dr. No",
            "fullTitle": "Dr. No (1962)",
            "type": "Movie",
            "year": "1962",
            "directors": {
                "job": "Director",
                "items": [
                    {
                        "id": "nm0950109",
                        "name": "Terence Young",
                        "description": "(directed by)"
                    }
                ]
            },
            "writers": {
                "job": "Writer",
                "items": [
                    {
                        "id": "nm0537363",
                        "name": "Richard Maibaum",
                        "description": "(screenplay by) &"
                    },
                    {
                        "id": "nm0367820",
                        "name": "Johanna Harwood",
                        "description": "(screenplay by) &"
                    },
                    {
                        "id": "nm0558435",
                        "name": "Berkely Mather",
                        "description": "(screenplay by)"
                    },
                    {
                        "id": "nm0001220",
                        "name": "Ian Fleming",
                        "description": "(based on the novel by)"
                    }, {
                        "id": "nm0542554",
                        "name": "Wolf Mankowitz",
                        "description": "(treatment) (uncredited)"
                    }, {
                        "id": "nm0950109",
                        "name": "Terence Young",
                        "description": "(uncredited)"
                    }
                ]
            },
            "actors": [
                {
                    "id": "nm0000125",
                    "image": "https://imdb-api.com/images/original/MV5BMzcwNTM4MzctYjQzMi00NTA2LTljYWItNTYzNmE1MTYxN2RlXkEyXkFqcGdeQXVyMDI2NDg0NQ@@._V1_Ratio0.7727_AL_.jpg",
                    "name": "Sean Connery",
                    "asCharacter": "James Bond"
                },
                {
                    "id": "nm0000266",
                    "image": "https://imdb-api.com/images/original/MV5BMTAxMjE4NjMzNDReQTJeQWpwZ15BbWU3MDk4OTU2MDQ@._V1_Ratio0.7727_AL_.jpg",
                    "name": "Ursula Andress",
                    "asCharacter": "Honey Ryder"
                },
                {
                    "id": "nm0936476",
                    "image": "https://imdb-api.com/images/original/MV5BMTk0NzI5MDY3NV5BMl5BanBnXkFtZTYwODQ4NjU2._V1_Ratio1.0000_AL_.jpg",
                    "name": "Joseph Wiseman",
                    "asCharacter": "Dr. No"
                },
                {
                    "id": "nm0520437",
                    "image": "https://imdb-api.com/images/original/MV5BMjEzMjI5MzYzN15BMl5BanBnXkFtZTYwNTU2OTQ2._V1_Ratio0.7273_AL_.jpg",
                    "name": "Jack Lord",
                    "asCharacter": "Felix Leiter"
                }, {
                    "id": "nm0496866",
                    "image": "https://imdb-api.com/images/original/MV5BMjA1NTc3MTAxMV5BMl5BanBnXkFtZTYwNTM5NjU2._V1_Ratio0.7273_AL_.jpg",
                    "name": "Bernard Lee",
                    "asCharacter": "M."
                }, {
                    "id": "nm0206060",
                    "image": "https://imdb-api.com/images/original/MV5BMTM1NjM2NjQ0Ml5BMl5BanBnXkFtZTcwNzkzNzQzNA@@._V1_Ratio0.9545_AL_.jpg",
                    "name": "Anthony Dawson",
                    "asCharacter": "Professor Dent"
                }, {
                    "id": "nm0551243",
                    "image": "https://imdb-api.com/images/original/MV5BMTgxNTMzMjMwNl5BMl5BanBnXkFtZTcwMTIzMDMxOA@@._V1_Ratio0.7727_AL_.jpg",
                    "name": "Zena Marshall",
                    "asCharacter": "Miss Taro"
                }, {
                    "id": "nm0457839",
                    "image": "https://imdb-api.com/images/original/MV5BMTI4ZGM4ZjgtYzk1YS00ODBhLWE2YjktNzhkMjdiY2UwMmQxXkEyXkFqcGdeQXVyMTc4MzI2NQ@@._V1_Ratio1.0000_AL_.jpg",
                    "name": "John Kitzmiller",
                    "asCharacter": "Quarrel (as John Kitzmuller)"
                }, {
                    "id": "nm0311013",
                    "image": "https://imdb-api.com/images/original/MV5BMjE1MzIxMTA0Ml5BMl5BanBnXkFtZTcwOTY3MzkwOA@@._V1_Ratio0.8182_AL_.jpg",
                    "name": "Eunice Gayson",
                    "asCharacter": "Sylvia Trench"
                }, {
                    "id": "nm0561755",
                    "image": "https://imdb-api.com/images/original/MV5BMTIxMTM3MTQyNF5BMl5BanBnXkFtZTYwOTQ4NjU2._V1_Ratio1.0000_AL_.jpg",
                    "name": "Lois Maxwell",
                    "asCharacter": "Miss Moneypenny"
                }, {
                    "id": "nm0078252",
                    "image": "https://imdb-api.com/images/original/MV5BNTEyMzYwODE1Ml5BMl5BanBnXkFtZTYwMDY4MzEz._V1_Ratio0.8182_AL_.jpg",
                    "name": "Peter Burton",
                    "asCharacter": "Major Boothroyd"
                }, {
                    "id": "nm0793553",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Yvonne Shima",
                    "asCharacter": "Sister Lily"
                }, {
                    "id": "nm0596304",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Michel Mok",
                    "asCharacter": "Sister Rose"
                }, {
                    "id": "nm0506759",
                    "image": "https://imdb-api.com/images/original/MV5BNWNiZTgwN2YtNWQwMy00NWU1LWIxNTktYjcwNjkzOGFhZGNiXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                    "name": "Marguerite LeWars",
                    "asCharacter": "Annabel Chung - Photographer (as Margaret Le Wars) (as Marguerite Lewars: end credits)"
                }, {
                    "id": "nm0288126",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "William Foster-Davis",
                    "asCharacter": "Superintendent Duff (as Wm. Foster-Davis)"
                }, {
                    "id": "nm0444180",
                    "image": "https://imdb-api.com/images/original/MV5BNDg3MzU3NDItYTkzYi00YTQxLWExYTEtYzQzZWJkM2YxMDliXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.5455_AL_.jpg",
                    "name": "Dolores Keator",
                    "asCharacter": "Mary Trueblood"
                }, {
                    "id": "nm0141883",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Reggie Carter",
                    "asCharacter": "Mr. Jones (as Reginald Carter)"
                }, {
                    "id": "nm0085108",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Louis Blaazer",
                    "asCharacter": "Pleydell-Smith"
                }, {
                    "id": "nm0123552",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Colonel Burton",
                    "asCharacter": "General Potter"
                }, {
                    "id": "nm6088119",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Abbot Anderson",
                    "asCharacter": "Crab Key Guard (uncredited)"
                }, {
                    "id": "nm0037393",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Jack Arrow",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm1625265",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Nigel Bernard",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm6088118",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Keith Binns",
                    "asCharacter": "Crab Key Guard (uncredited)"
                }, {
                    "id": "nm0085889",
                    "image": "https://imdb-api.com/images/original/MV5BMmRhYzZlZWQtMjRiOC00MDBkLWJhNDUtZWI4OGZjNTZlMGNjXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2727_AL_.jpg",
                    "name": "Chris Blackwell",
                    "asCharacter": "Henchman Jumping Off Dock into Water (uncredited)"
                }, {
                    "id": "nm6088120",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Kes Chin",
                    "asCharacter": "Dragon Guard (uncredited)"
                }, {
                    "id": "nm0157716",
                    "image": "https://imdb-api.com/images/original/MV5BMTQzMTc4MTE4MF5BMl5BanBnXkFtZTgwMTU3MjU5MjE@._V1_Ratio1.3182_AL_.jpg",
                    "name": "Anthony Chinn",
                    "asCharacter": "Decontamination Technician (uncredited)"
                }, {
                    "id": "nm0183646",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Diana Coupland",
                    "asCharacter": "Honey Ryder - Singing Voice (voice) (uncredited)"
                }, {
                    "id": "nm0184443",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Eric Coverley",
                    "asCharacter": "1st Three Blind Mice Assassin (uncredited)"
                }, {
                    "id": "nm1071552",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Reggie de Beer",
                    "asCharacter": "Casino Patron (uncredited)"
                }, {
                    "id": "nm1567128",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Alicia Deane",
                    "asCharacter": "Woman in Dr. No's Lair (uncredited)"
                }, {
                    "id": "nm3783642",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Charles Edghill",
                    "asCharacter": "2nd Three Blind Mice Assassin (uncredited)"
                }, {
                    "id": "nm0254080",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Margaret Ellery",
                    "asCharacter": "Stewardess (uncredited)"
                }, {
                    "id": "nm2913075",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Joe Enrikie",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm6088116",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Lancelot Evans",
                    "asCharacter": "Crab Key Dock Guard (uncredited)"
                }, {
                    "id": "nm0263129",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Peter Evans",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm6088114",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Hilary Farish",
                    "asCharacter": "Stewardess (uncredited)"
                }, {
                    "id": "nm2148856",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Charles Gilliard",
                    "asCharacter": "Le Cercle Waiter (uncredited)"
                }, {
                    "id": "nm0324916",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Alan Gold",
                    "asCharacter": "Croupier at La Cercle (uncredited)"
                }, {
                    "id": "nm8646951",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Arthur Goodman",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm3134822",
                    "image": "https://imdb-api.com/images/original/MV5BZjIyMDY0OWYtZDhhNi00N2NkLTk1OGYtZmEzMTQ5OGY2ZjQyXkEyXkFqcGdeQXVyMjUyNDk2ODc@._V1_Ratio1.2273_AL_.jpg",
                    "name": "Victor Harrington",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm0369048",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "John Hatton",
                    "asCharacter": "Radio Operator (uncredited)"
                }, {
                    "id": "nm0385149",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "George Hilsdon",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm0424138",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Billy John",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm1263620",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Gerry Judge",
                    "asCharacter": "Le Cercle Waiter (uncredited)"
                }, {
                    "id": "nm8135126",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Pat Judge",
                    "asCharacter": "Le Cercle Waiter (uncredited)"
                }, {
                    "id": "nm0448429",
                    "image": "https://imdb-api.com/images/original/MV5BZmQ2YTkyMzgtNzI2MS00OGU0LTliYzQtY2M2OWYxZjU2YTgzXkEyXkFqcGdeQXVyMjk3NTUyOTc@._V1_Ratio1.8636_AL_.jpg",
                    "name": "Juba Kennerley",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm0494050",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Bettine Le Beau",
                    "asCharacter": "Professor Dent's Secretary (uncredited)"
                }, {
                    "id": "nm0496837",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Arnold Lee",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm0496930",
                    "image": "https://imdb-api.com/images/original/MV5BNWM3ZDA5ZDUtN2QxYi00YzE4LWEyNzQtNGI3MTM0OTNlMDEzL2ltYWdlL2ltYWdlXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                    "name": "Byron Lee",
                    "asCharacter": "Singer at Puss Feller's (uncredited)"
                }, {
                    "id": "nm0498543",
                    "image": "https://imdb-api.com/images/original/MV5BZmUxNjQ1ZjUtNmI1ZC00ZTVjLThiNDQtYjU3YjIyZjEzZmJjXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2727_AL_.jpg",
                    "name": "George Leech",
                    "asCharacter": "Decontamination Technician (uncredited)"
                }, {
                    "id": "nm0504431",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Dan Lester",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm1527991",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Rick Lester",
                    "asCharacter": "Guard (uncredited)"
                }, {
                    "id": "nm2283932",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Henry Lopez",
                    "asCharacter": "3rd Three Blind Mice Assassin (uncredited)"
                }, {
                    "id": "nm10968631",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Keith Lyn",
                    "asCharacter": "Vocalist - the Dragonaires (uncredited)"
                }, {
                    "id": "nm4578224",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Louis Marriott",
                    "asCharacter": "Dragon Guard (uncredited)"
                }, {
                    "id": "nm8742461",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Colin McKenzie",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm0588131",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Count Prince Miller",
                    "asCharacter": "Nightclub Dancer (uncredited)"
                }, {
                    "id": "nm0605043",
                    "image": "https://imdb-api.com/images/original/MV5BZWMxODEyYjEtNTQ5ZC00ZTA2LTg1NGMtNGExMzUzNzg4MTc0XkEyXkFqcGdeQXVyMzI5NDcxNzI@._V1_Ratio0.7727_AL_.jpg",
                    "name": "Stanley Morgan",
                    "asCharacter": "Concierge at Le Cercle (uncredited)"
                }, {
                    "id": "nm0610319",
                    "image": "https://imdb-api.com/images/original/MV5BMzA5ZmEyZDQtZTUwZi00NzE0LTk4YzQtYTc5ZDBmMGIyMTgxXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                    "name": "Tim Moxon",
                    "asCharacter": "Professor John Strangways (uncredited)"
                }, {
                    "id": "nm0659837",
                    "image": "https://imdb-api.com/images/original/MV5BMjE3OWY4MmQtYjI2Yi00NjhiLTkzZTktYmM1M2YyMzM3ZGRmXkEyXkFqcGdeQXVyMzAwOTU1MTk@._V1_Ratio1.2273_AL_.jpg",
                    "name": "Malou Pantera",
                    "asCharacter": "Hotel Receptionist (uncredited)"
                }, {
                    "id": "nm0668463",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Willie Payne",
                    "asCharacter": "Johnny - Hotel Worker (uncredited)"
                }, {
                    "id": "nm0695965",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Lester Pendergast",
                    "asCharacter": "Puss Feller (uncredited)"
                }, {
                    "id": "nm6088115",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Carol Reckford",
                    "asCharacter": "Dent's Boat Captain (uncredited)"
                }, {
                    "id": "nm0717374",
                    "image": "https://imdb-api.com/images/original/MV5BMjczMzU4MjM5Ml5BMl5BanBnXkFtZTgwMzk0NjU3MTE@._V1_Ratio1.2727_AL_.jpg",
                    "name": "Milton Reid",
                    "asCharacter": "Dr. No's Guard (uncredited)"
                }, {
                    "id": "nm0726403",
                    "image": "https://imdb-api.com/images/original/MV5BZjc0NTJkOTMtNjQ2Ni00ZjcwLWEzMzctYzdkNDE0YWJiNjUzXkEyXkFqcGdeQXVyMzI2MDEwNA@@._V1_Ratio0.8182_AL_.jpg",
                    "name": "Robert Rietty",
                    "asCharacter": "John Strangways / Superintendent Duff (voice) (uncredited)"
                }, {
                    "id": "nm0732345",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Adrian Robinson",
                    "asCharacter": "Hearse Driver (uncredited)"
                }, {
                    "id": "nm6088117",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Carey Robinson",
                    "asCharacter": "Guard with Loudspeaker (uncredited)"
                }, {
                    "id": "nm0761788",
                    "image": "https://imdb-api.com/images/original/MV5BN2ViNDRlY2MtZTBhNi00M2Y0LTkwNjktNTYyYjk0MTZmMWY4XkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                    "name": "Harold Sanderson",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm7942120",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Bunny Seaman",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm1765163",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "John Sefton",
                    "asCharacter": "Le Cercle Croupier (uncredited)"
                }, {
                    "id": "nm0789871",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Maxwell Shaw",
                    "asCharacter": "Communications Operator (uncredited)"
                }, {
                    "id": "nm0799689",
                    "image": "https://imdb-api.com/images/original/MV5BNzZjMTYxOWQtZGQ0ZS00NDljLTk3ZjAtNzFiNDU5NzkwNjdiXkEyXkFqcGdeQXVyMTQxMjk0Mg@@._V1_Ratio1.2273_AL_.jpg",
                    "name": "Bob Simmons",
                    "asCharacter": "James Bond in Gunbarrel Sequence (uncredited)"
                }, {
                    "id": "nm0802352",
                    "image": "https://imdb-api.com/images/original/MV5BMjY5NTE1YzEtMjAwYS00YThmLWFkNmQtOGI1Mzg5MjEwNTBkXkEyXkFqcGdeQXVyMTI3MDk3MzQ@._V1_Ratio1.6364_AL_.jpg",
                    "name": "Frank Singuineau",
                    "asCharacter": "Hotel Waiter (uncredited)"
                }, {
                    "id": "nm8757347",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "John Smart",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm0867112",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Graham Tonbridge",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm0886424",
                    "image": "https://imdb-api.com/images/original/MV5BYTFlNzM3YzAtZWJkMS00YTIwLTgyNjktNzRiMzIyY2M2ZjlhXkEyXkFqcGdeQXVyNjUwNzk3NDc@._V1_Ratio0.7273_AL_.jpg",
                    "name": "Nikki Van der Zyl",
                    "asCharacter": "Honey Ryder / Sylvia Trench / Various (voice) (uncredited)"
                }, {
                    "id": "nm0903747",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Robert Vossler",
                    "asCharacter": "Le Cercle Waiter (uncredited)"
                }, {
                    "id": "nm8698709",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "Pearl Walters",
                    "asCharacter": "Le Cercle Patron (uncredited)"
                }, {
                    "id": "nm1440312",
                    "image": "https://imdb-api.com/images/original/nopicture.jpg",
                    "name": "John Wilder",
                    "asCharacter": "Le Cercle Cashier (uncredited)"
                }
            ],
            "others": [
                {
                    "job": "Produced by",
                    "items": [
                        {
                            "id": "nm0110482",
                            "name": "Albert R. Broccoli",
                            "description": "producer (as Albert R .Broccoli) (produced by)"
                        }, {
                            "id": "nm0759162",
                            "name": "Harry Saltzman",
                            "description": "producer (produced by)"
                        }, {
                            "id": "nm0814621",
                            "name": "Stanley Sopel",
                            "description": "associate producer (uncredited)"
                        }
                    ]
                },
                {
                    "job": "Music by",
                    "items": [
                        {
                            "id": "nm0635578",
                            "name": "Monty Norman",
                            "description": "(music composed by)"
                        }
                    ]
                },
                {
                    "job": "Cinematography by",
                    "items": [
                        {
                            "id": "nm0601924",
                            "name": "Ted Moore",
                            "description": "director of photography"
                        }
                    ]
                },
                {
                    "job": "Film Editing by",
                    "items": [
                        {
                            "id": "nm0402597",
                            "name": "Peter R. Hunt",
                            "description": "(as Peter Hunt)"
                        }
                    ]
                }, {
                    "job": "Casting By",
                    "items": [
                        {
                            "id": "nm0509896",
                            "name": "James Liggat",
                            "description": "(uncredited)"
                        }
                    ]
                }, {
                    "job": "Production Design by",
                    "items": [
                        {
                            "id": "nm0010553",
                            "name": "Ken Adam",
                            "description": ""
                        }
                    ]
                }, {
                    "job": "Art Direction by",
                    "items": [
                        {
                            "id": "nm0128966",
                            "name": "Syd Cain",
                            "description": "(uncredited)"
                        }
                    ]
                }, {
                    "job": "Makeup Department",
                    "items": [
                        {
                            "id": "nm0641071",
                            "name": "John O'Gorman",
                            "description": "makeup artist"
                        }, {
                            "id": "nm0913235",
                            "name": "Eileen Warwick",
                            "description": "hair stylist"
                        }
                    ]
                }, {
                    "job": "Production Management",
                    "items": [
                        {
                            "id": "nm0748817",
                            "name": "L.C. Rudkin",
                            "description": "production manager"
                        }
                    ]
                }, {
                    "job": "Second Unit Director or Assistant Director",
                    "items": [
                        {
                            "id": "nm0715366",
                            "name": "Clive Reed",
                            "description": "assistant director"
                        }, {
                            "id": "nm0026585",
                            "name": "David C. Anderson",
                            "description": "second assistant director (uncredited)"
                        }, {
                            "id": "nm0575048",
                            "name": "John Meadows",
                            "description": "third assistant director (uncredited)"
                        }
                    ]
                }, {
                    "job": "Art Department",
                    "items": [
                        {
                            "id": "nm0669253",
                            "name": "Freda Pearson",
                            "description": "set dressing"
                        },
                        {
                            "id": "nm0051395",
                            "name": "Dickie Bamber",
                            "description": "dressing props (uncredited)"
                        },
                        {
                            "id": "nm0158239",
                            "name": "John Chisholm",
                            "description": "prop man (uncredited)"
                        },
                        {
                            "id": "nm0703176",
                            "name": "Ron Quelch",
                            "description": "production buyer (uncredited)"
                        }, {
                            "id": "nm0866766",
                            "name": "Alan Tomkins",
                            "description": "chief draughtsman (uncredited)"
                        }
                    ]
                }, {
                    "job": "Sound Department",
                    "items": [
                        {
                            "id": "nm0219480",
                            "name": "John Dennis",
                            "description": "sound recordist"
                        },
                        {
                            "id": "nm0524944",
                            "name": "Archie Ludski",
                            "description": "dubbing editor"
                        },
                        {
                            "id": "nm0590417",
                            "name": "Wally Milner",
                            "description": "sound recordist"
                        },
                        {
                            "id": "nm0911232",
                            "name": "Norman Wanstall",
                            "description": "dubbing editor"
                        }, {
                            "id": "nm0367242",
                            "name": "Graham V. Hartstone",
                            "description": "sound camera operator (uncredited)"
                        }, {
                            "id": "nm1990398",
                            "name": "Daphne Oram",
                            "description": "electronic sounds (uncredited)"
                        }, {
                            "id": "nm0941734",
                            "name": "Don Wortham",
                            "description": "boom operator (uncredited)"
                        }
                    ]
                }, {
                    "job": "Special Effects by",
                    "items": [
                        {
                            "id": "nm0313424",
                            "name": "Frank George",
                            "description": "special effects"
                        }
                    ]
                }, {
                    "job": "Visual Effects by",
                    "items": [
                        {
                            "id": "nm0191543",
                            "name": "Cliff Culley",
                            "description": "matte artist (uncredited)"
                        }, {
                            "id": "nm0276037",
                            "name": "Roy Field",
                            "description": "visual effects (uncredited)"
                        }
                    ]
                }, {
                    "job": "Stunts",
                    "items": [
                        {
                            "id": "nm0102704",
                            "name": "Peter Brace",
                            "description": "stunts (uncredited)"
                        },
                        {
                            "id": "nm0186229",
                            "name": "Gerry Crampton",
                            "description": "stunts (uncredited)"
                        },
                        {
                            "id": "nm0191855",
                            "name": "Bill Cummings",
                            "description": "stunts (uncredited)"
                        },
                        {
                            "id": "nm0256254",
                            "name": "Steve Emerson",
                            "description": "stunts (uncredited)"
                        }, {
                            "id": "nm0324916",
                            "name": "Alan Gold",
                            "description": "stunts (uncredited)"
                        }, {
                            "id": "nm0397931",
                            "name": "Arthur Howell",
                            "description": "stunts (uncredited)"
                        }, {
                            "id": "nm0498543",
                            "name": "George Leech",
                            "description": "stunt double: Joseph Wiseman (uncredited) / stunts (uncredited)"
                        }, {
                            "id": "nm0694093",
                            "name": "Dinny Powell",
                            "description": "stunts (uncredited)"
                        }, {
                            "id": "nm0799689",
                            "name": "Bob Simmons",
                            "description": "stunt arranger (uncredited) / stunt double (uncredited) / stunt double: Lester Prendergast (uncredited) / stunt double: Reginald Carter (uncredited) / stunt double: Sean Connery (uncredited) / stunts (uncredited)"
                        }, {
                            "id": "nm0853092",
                            "name": "Rocky Taylor",
                            "description": "stunts (uncredited)"
                        }
                    ]
                }, {
                    "job": "Camera and Electrical Department",
                    "items": [
                        {
                            "id": "nm0819277",
                            "name": "Jimmy Spoard",
                            "description": "grip"
                        },
                        {
                            "id": "nm0934549",
                            "name": "John Winbolt",
                            "description": "camera operator"
                        },
                        {
                            "id": "nm0134019",
                            "name": "Bert Cann",
                            "description": "still photographer (uncredited)"
                        },
                        {
                            "id": "nm3640578",
                            "name": "Allan Jones",
                            "description": "clapper loader (uncredited)"
                        }, {
                            "id": "nm0502153",
                            "name": "Ronald Lenoir",
                            "description": "set rigger (uncredited)"
                        }, {
                            "id": "nm0684325",
                            "name": "George Pink",
                            "description": "camera operator (uncredited)"
                        }, {
                            "id": "nm0788050",
                            "name": "Laurie Shane",
                            "description": "electrician (uncredited)"
                        }, {
                            "id": "nm0793917",
                            "name": "John Shinerock",
                            "description": "focus puller (uncredited)"
                        }, {
                            "id": "nm0947013",
                            "name": "Bunny Yeager",
                            "description": "still photographer: Jamaica (uncredited)"
                        }
                    ]
                }, {
                    "job": "Animation Department",
                    "items": [
                        {
                            "id": "nm0094059",
                            "name": "Trevor Bond",
                            "description": "animation"
                        }, {
                            "id": "nm0255057",
                            "name": "Robert Ellis",
                            "description": "title animator (uncredited)"
                        }
                    ]
                }, {
                    "job": "Costume and Wardrobe Department",
                    "items": [
                        {
                            "id": "nm0695973",
                            "name": "Tessa Prendergast",
                            "description": "costumes (as Tessa Welborn)"
                        }, {
                            "id": "nm0103654",
                            "name": "John Brady",
                            "description": "wardrobe master (uncredited)"
                        }, {
                            "id": "nm0838054",
                            "name": "Eileen Sullivan",
                            "description": "wardrobe mistress (uncredited)"
                        }
                    ]
                }, {
                    "job": "Editorial Department",
                    "items": [
                        {
                            "id": "nm0713447",
                            "name": "Ben Rayner",
                            "description": "assistant editor (as Ben Reyner)"
                        }, {
                            "id": "nm1170361",
                            "name": "Brian Borne",
                            "description": "colorist (uncredited)"
                        }
                    ]
                }, {
                    "job": "Location Management",
                    "items": [
                        {
                            "id": "nm0085889",
                            "name": "Chris Blackwell",
                            "description": "location manager (uncredited)"
                        }
                    ]
                }, {
                    "job": "Music Department",
                    "items": [
                        {
                            "id": "nm0000290",
                            "name": "John Barry",
                            "description": "music arranger: James Bond theme"
                        },
                        {
                            "id": "nm0722395",
                            "name": "Burt Rhodes",
                            "description": "orchestrator"
                        },
                        {
                            "id": "nm0736864",
                            "name": "Eric Rogers",
                            "description": "conductor (as Eric Rodgers)"
                        },
                        {
                            "id": "nm0183646",
                            "name": "Diana Coupland",
                            "description": "singing voice: Ursula Andress (uncredited)"
                        }, {
                            "id": "nm0282277",
                            "name": "Vic Flick",
                            "description": "musician: guitar (uncredited)"
                        }, {
                            "id": "nm0546731",
                            "name": "Sidney Margo",
                            "description": "music contractor (uncredited)"
                        }, {
                            "id": "nm0779346",
                            "name": "John Scott",
                            "description": "musician: saxophone (uncredited)"
                        }, {
                            "id": "nm0866839",
                            "name": "Eric Tomlinson",
                            "description": "music engineer (uncredited)"
                        }
                    ]
                }, {
                    "job": "Script and Continuity Department",
                    "items": [
                        {
                            "id": "nm0926389",
                            "name": "Helen Whitson",
                            "description": "continuity"
                        }
                    ]
                }, {
                    "job": "Additional Crew",
                    "items": [
                        {
                            "id": "nm0082800",
                            "name": "Maurice Binder",
                            "description": "main title designed by"
                        },
                        {
                            "id": "nm12462308",
                            "name": "Michael Borota",
                            "description": "stand-in: Mr. Conery"
                        },
                        {
                            "id": "nm0110482",
                            "name": "Albert R. Broccoli",
                            "description": "presenter (as Albert R.Broccoli)"
                        },
                        {
                            "id": "nm0759162",
                            "name": "Harry Saltzman",
                            "description": "presenter"
                        }, {
                            "id": "nm5446664",
                            "name": "Len Chance",
                            "description": "accountant (uncredited)"
                        }, {
                            "id": "nm0307461",
                            "name": "Jean Garioch",
                            "description": "unit publicist (uncredited)"
                        }, {
                            "id": "nm5448111",
                            "name": "Roy McGregor",
                            "description": "director of publicity (uncredited)"
                        }, {
                            "id": "nm5448082",
                            "name": "George 'Bud' Ornstein",
                            "description": "production executive: United Artists (uncredited)"
                        }, {
                            "id": "nm5154609",
                            "name": "Halsey Raines",
                            "description": "publicity director (uncredited)"
                        }, {
                            "id": "nm0799689",
                            "name": "Bob Simmons",
                            "description": "body double: James Bond, in opening sequence (uncredited)"
                        }, {
                            "id": "nm2029644",
                            "name": "Maureen Whitty",
                            "description": "production secretary (uncredited)"
                        }
                    ]
                }
            ],
            "errorMessage": ""
        },
        "genres": "Action, Adventure, Thriller",
        "genreList": [
            {
                "key": "Action",
                "value": "Action"
            }, {
                "key": "Adventure",
                "value": "Adventure"
            }, {
                "key": "Thriller",
                "value": "Thriller"
            }
        ],
        "companies": "Eon Productions",
        "companyList": [
            {
                "id": "co0054040",
                "name": "Eon Productions"
            }
        ],
        "countries": "ROYAUME-UNI",
        "countryList": [
            {
                "key": "UK",
                "value": "ROYAUME-UNI"
            }
        ],
        "languages": "Anglais, Français",
        "languageList": [
            {
                "key": "English",
                "value": "Anglais"
            }, {
                "key": "French",
                "value": "Français"
            }
        ],
        "contentRating": "PG",
        "imDbRating": "7.2",
        "imDbRatingVotes": "153254",
        "metacriticRating": "78",
        "ratings": null,
        "wikipedia": null,
        "posters": null,
        "images": null,
        "trailer": null,
        "boxOffice": {
            "budget": "$1,100,000 (estimated)",
            "openingWeekendUSA": "",
            "grossUSA": "$16,067,035",
            "cumulativeWorldwideGross": "$16,079,357"
        },
        "tagline": "Spend a night with James Bond! (1972 reissue US one sheet poster)",
        "keywords": "jamaica,british secret service,official james bond series,felix leiter character,famous opening theme",
        "keywordList": [
            "jamaica",
            "british secret service",
            "official james bond series",
            "felix leiter character",
            "famous opening theme"
        ],
        "similars": [
            {
                "id": "tt0057076",
                "title": "From Russia with Love",
                "fullTitle": "From Russia with Love (1963)",
                "year": "1963",
                "image": "https://imdb-api.com/images/original/MV5BZjBiNGNlNmItZTk2Zi00YjRlLTk1NzEtNDI2YTNmN2EwNDhlXkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6737_AL_.jpg",
                "plot": "James Bond willingly falls into an assassination plot involving a naive Russian beauty in order to retrieve a Soviet encryption device that was stolen by S.P.E.C.T.R.E.",
                "directors": "Terence Young",
                "stars": "Sean Connery, Robert Shaw, Lotte Lenya",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "7.4"
            },
            {
                "id": "tt0058150",
                "title": "Goldfinger",
                "fullTitle": "Goldfinger (1964)",
                "year": "1964",
                "image": "https://imdb-api.com/images/original/MV5BMTQ2MzE0OTU3NV5BMl5BanBnXkFtZTcwNjQxNTgzNA@@._V1_Ratio0.6737_AL_.jpg",
                "plot": "While investigating a gold magnate's smuggling, James Bond uncovers a plot to contaminate the Fort Knox gold reserve.",
                "directors": "Guy Hamilton",
                "stars": "Sean Connery, Gert Fröbe, Honor Blackman",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "7.7"
            },
            {
                "id": "tt0059800",
                "title": "Thunderball",
                "fullTitle": "Thunderball (1965)",
                "year": "1965",
                "image": "https://imdb-api.com/images/original/MV5BM2I0YWRjZDQtMjQwMC00N2EzLTg0MTctYWE0MzIzOTZiMjE5XkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6737_AL_.jpg",
                "plot": "James Bond heads to the Bahamas to recover two nuclear warheads stolen by S.P.E.C.T.R.E. Agent Emilio Largo in an international extortion scheme.",
                "directors": "Terence Young",
                "stars": "Sean Connery, Claudine Auger, Adolfo Celi",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "7"
            },
            {
                "id": "tt0062512",
                "title": "You Only Live Twice",
                "fullTitle": "You Only Live Twice (1967)",
                "year": "1967",
                "image": "https://imdb-api.com/images/original/MV5BMTc5MThlMDMtNGZhNy00ZGI5LTliYjItNmIwMzZlOTliOTNhXkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6737_AL_.jpg",
                "plot": "Secret Agent James Bond and the Japanese Secret Service must find and stop the true culprit of a series of space hijackings, before war is provoked between Russia and the United States.",
                "directors": "Lewis Gilbert",
                "stars": "Sean Connery, Akiko Wakabayashi, Mie Hama",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "6.9"
            }, {
                "id": "tt0066995",
                "title": "Diamonds Are Forever",
                "fullTitle": "Diamonds Are Forever (1971)",
                "year": "1971",
                "image": "https://imdb-api.com/images/original/MV5BMDBlODdhNTYtMGYwNi00NjI1LWFiNTYtMzAwYWM5MTRlMzgzXkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6737_AL_.jpg",
                "plot": "A diamond smuggling investigation leads James Bond to Las Vegas, where he uncovers an evil plot involving a rich business tycoon.",
                "directors": "Guy Hamilton",
                "stars": "Sean Connery, Jill St. John, Charles Gray",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "6.6"
            }, {
                "id": "tt0064757",
                "title": "On Her Majesty's Secret Service",
                "fullTitle": "On Her Majesty's Secret Service (1969)",
                "year": "1969",
                "image": "https://imdb-api.com/images/original/MV5BZGFlNGNiMmQtMThhZS00MWMxLWFiNGItZTM4ZmJlODM3ZmU2XkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6737_AL_.jpg",
                "plot": "James Bond woos a mob boss' daughter and goes undercover to uncover the true reason for Ernst Stavro Blofeld's allergy research in the Swiss Alps involving beautiful women from around the world.",
                "directors": "Peter R. Hunt",
                "stars": "George Lazenby, Diana Rigg, Telly Savalas",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "6.7"
            }, {
                "id": "tt0070328",
                "title": "Live and Let Die",
                "fullTitle": "Live and Let Die (1973)",
                "year": "1973",
                "image": "https://imdb-api.com/images/original/MV5BYzFhNTBiYTMtZmI3MC00YmIxLWJjYzQtYzNmMjg1NjlhYzJkXkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6737_AL_.jpg",
                "plot": "James Bond is sent to stop a diabolically brilliant heroin magnate armed with a complex organisation and a reliable psychic tarot card reader.",
                "directors": "Guy Hamilton",
                "stars": "Roger Moore, Yaphet Kotto, Jane Seymour",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "6.8"
            }, {
                "id": "tt0071807",
                "title": "The Man with the Golden Gun",
                "fullTitle": "The Man with the Golden Gun (1974)",
                "year": "1974",
                "image": "https://imdb-api.com/images/original/MV5BYjY3YmM1MTItMWE0NC00NjFmLWFkMDgtMWFiZjY5NzQyZGVjXkEyXkFqcGdeQXVyNjc1NTYyMjg@._V1_Ratio0.6737_AL_.jpg",
                "plot": "James Bond is targeted by the world's most expensive assassin, while he attempts to recover sensitive solar cell technology that is being sold to the highest bidder.",
                "directors": "Guy Hamilton",
                "stars": "Roger Moore, Christopher Lee, Britt Ekland",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "6.7"
            }, {
                "id": "tt0076752",
                "title": "The Spy Who Loved Me",
                "fullTitle": "The Spy Who Loved Me (1977)",
                "year": "1977",
                "image": "https://imdb-api.com/images/original/MV5BZDJhOTgyMTUtMDVhOS00MzRlLTk0MjYtYjI5NzhhMTExMTc1XkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6737_AL_.jpg",
                "plot": "James Bond investigates the hijacking of British and Russian submarines carrying nuclear warheads, with the help of a K.G.B. agent whose lover he killed.",
                "directors": "Lewis Gilbert",
                "stars": "Roger Moore, Barbara Bach, Curd Jürgens",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "7.1"
            }, {
                "id": "tt0086034",
                "title": "Octopussy",
                "fullTitle": "Octopussy (1983)",
                "year": "1983",
                "image": "https://imdb-api.com/images/original/MV5BMjI2MDE0NjE1NV5BMl5BanBnXkFtZTcwNjYyMzY0NA@@._V1_Ratio0.6737_AL_.jpg",
                "plot": "A fake Fabergé egg, and a fellow Agent's death, lead James Bond to uncover an international jewel-smuggling operation, headed by the mysterious Octopussy, being used to disguise a nuclear attack on N.A.T.O. forces.",
                "directors": "John Glen",
                "stars": "Roger Moore, Maud Adams, Louis Jourdan",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "6.5"
            }, {
                "id": "tt0082398",
                "title": "For Your Eyes Only",
                "fullTitle": "For Your Eyes Only (1981)",
                "year": "1981",
                "image": "https://imdb-api.com/images/original/MV5BMzQ4YzUzNGQtMDNkYS00NTk5LTkyMDgtNmVkMjg5MjIzNTdmXkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6737_AL_.jpg",
                "plot": "James Bond is assigned to find a missing British vessel, equipped with a weapons encryption device and prevent it from falling into enemy hands.",
                "directors": "John Glen",
                "stars": "Roger Moore, Carole Bouquet, Topol",
                "genres": "Action, Adventure, Thriller",
                "imDbRating": "6.7"
            }, {
                "id": "tt0079574",
                "title": "Moonraker",
                "fullTitle": "Moonraker (1979)",
                "year": "1979",
                "image": "https://imdb-api.com/images/original/MV5BM2M5MTA3YzUtZDRiNi00NTk4LTk2ODEtY2ZiOTZmMzcwNjQwXkEyXkFqcGdeQXVyNDY2MTk1ODk@._V1_Ratio0.6737_AL_.jpg",
                "plot": "James Bond investigates the mid-air theft of a space shuttle, and discovers a plot to commit global genocide.",
                "directors": "Lewis Gilbert",
                "stars": "Roger Moore, Lois Chiles, Michael Lonsdale",
                "genres": "Action, Adventure, Sci-Fi",
                "imDbRating": "6.3"
            }
        ],
        "tvSeriesInfo": null,
        "tvEpisodeInfo": null,
        "errorMessage": ""
    }

  2. #2
    Membre Expert
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    1 545
    Détails du profil
    Informations personnelles :
    Âge : 46
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 1 545
    Par défaut
    Je crois qu'il manque l'essentiel: comment tu procèdes pour alimenter ta classe par le json ?

    même l'API officielle utilise des listes différentes https://imdb-api.com/api/#Title-header
    https://www.nuget.org/packages/IMDbApiLib

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    using System;
    using System.Collections.Generic;
     
    namespace IMDbApiLib.Models
    {
        public class TitleData : ICloneable
        {
            public TitleData()
            {
                ErrorMessage = string.Empty;
                DirectorList = new List<StarShort>();
                WriterList = new List<StarShort>();
                StarList = new List<StarShort>();
                ActorList = new List<ActorShort>();
                FullCast = new FullCastData();
     
                GenreList = new List<KeyValueItem>();
                CompanyList = new List<CompanyShort>();
                CountryList = new List<KeyValueItem>();
                LanguageList = new List<KeyValueItem>();
     
                Posters = new PosterData();
                Images = new ImageData();
     
                KeywordList = new List<string>();
     
                BoxOffice = new BoxOfficeShort();
                Similars = new List<SimilarShort>();
     
                TvSeriesInfo = new TvSeriesInfo();
                TvEpisodeInfo = new TvEpisodeInfo();
     
                Ratings = new RatingData();
                Wikipedia = new WikipediaData();
     
                Writers = Directors = Stars = Companies = Countries = Genres = Keywords = Languages = string.Empty;
            }
     
            public TitleData(string id, string errorMessage)
            {
                ErrorMessage = errorMessage;
                Id = id;
            }
     
            public string Id { get; set; }
            public string Title { set; get; }
            public string OriginalTitle { get; set; }
            public string FullTitle { set; get; }
            public string Type { set; get; }
            public string Year { set; get; }
            public string Image { get; set; }
            public string ReleaseDate { set; get; }
            public string RuntimeMins { set; get; }
            public string RuntimeStr { set; get; }
            public string Plot { set; get; }
            public string PlotLocal { set; get; }
            public bool PlotLocalIsRtl { set; get; }
            public string Awards { set; get; }
            public string Directors { set; get; }
            public List<StarShort> DirectorList { get; set; }
            public string Writers { set; get; }
            public List<StarShort> WriterList { get; set; }
            public string Stars { set; get; }
            public List<StarShort> StarList { get; set; }
            public List<ActorShort> ActorList { get; set; }
            public FullCastData FullCast { get; set; }
            public string Genres { set; get; }
            public List<KeyValueItem> GenreList { get; set; }
            public string Companies { get; set; }
            public List<CompanyShort> CompanyList { get; set; }
            public string Countries { set; get; }
            public List<KeyValueItem> CountryList { set; get; }
            public string Languages { set; get; }
            public List<KeyValueItem> LanguageList { set; get; }
            public string ContentRating { get; set; }
            public string IMDbRating { get; set; }
            public string IMDbRatingVotes { get; set; }
            public string MetacriticRating { set; get; }
            public RatingData Ratings { set; get; }
            public WikipediaData Wikipedia { set; get; }
            public PosterData Posters { get; set; }
            public ImageData Images { get; set; }
            public TrailerData Trailer { get; set; }
            public BoxOfficeShort BoxOffice { get; set; }
            public string Tagline { get; set; }
            public string Keywords { get; set; }
            public List<string> KeywordList { get; set; }
            public List<SimilarShort> Similars { get; set; }
            public TvSeriesInfo TvSeriesInfo { get; set; }
            public TvEpisodeInfo TvEpisodeInfo { get; set; }
            public string ErrorMessage { get; set; }
            public object Clone()
            {
                return MemberwiseClone();
            }
        }
     
     
        public class PosterDataItem
        {
            public string Id { get; set; }
            public string Link { get; set; }
            public double AspectRatio { get; set; }
            public string Language { get; set; }
            public int Width { get; set; }
            public int Height { get; set; }
        }
     
        public class TvSeriesInfo
        {
            public TvSeriesInfo()
            {
                CreatorList = new List<StarShort>();
                Seasons = new List<string>();
                Creators = YearEnd = string.Empty;
            }
     
            public string YearEnd { set; get; }
            public string Creators { set; get; }
            public List<StarShort> CreatorList { get; set; }
            public List<string> Seasons { get; set; }
        }
     
        public class TvEpisodeInfo
        {
            public string SeriesId { get; set; }
            public string SeriesTitle { get; set; }
            public string SeriesFullTitle { get; set; }
            public string SeriesYear { get; set; }
            public string SeriesYearEnd { get; set; }
            public string SeasonNumber { get; set; }
            public string EpisodeNumber { get; set; }
            public string PreviousEpisodeId { get; set; }
            public string NextEpisodeId { get; set; }
        }
     
        public class SimilarShort
        {
            public SimilarShort()
            {
                Id = Title = Image = IMDbRating = string.Empty;
            }
     
            public string Id { get; set; }
            public string Title { get; set; }
            public string Image { get; set; }
            public string IMDbRating { get; set; }
        }
     
        public class StarShort
        {
            public string Id { get; set; }
            public string Name { get; set; }
        }
     
        public class BoxOfficeShort
        {
            public BoxOfficeShort()
            {
                Budget = OpeningWeekendUSA = GrossUSA = CumulativeWorldwideGross = string.Empty;
            }
     
            public string Budget { get; set; }
            public string OpeningWeekendUSA { get; set; }
            public string GrossUSA { get; set; }
            public string CumulativeWorldwideGross { get; set; }
        }
     
        public class CompanyShort
        {
            public string Id { get; set; }
            public string Name { get; set; }
        }
    }

  3. #3
    Membre expérimenté
    Avatar de zooffy
    Homme Profil pro
    Chef de projet MOA
    Inscrit en
    Août 2004
    Messages
    3 895
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Chef de projet MOA
    Secteur : Bâtiment

    Informations forums :
    Inscription : Août 2004
    Messages : 3 895
    Par défaut
    Le fichier JSON que j'ai mis en exemple est le résultat de l'appel de l'API
    La classe que j'ai en exemple est faite à partir d'un transformateur de code : https://jsonutils.com/
    J'ai mis le ficher JSON dedans, j'ai coché la case VB et ensuite j'ai factorisé des trucs.

    Enfin, pour répondre à ta question je crois qu'il faut que je donne encore du code.
    j'ai fait un objet cible car je n'ai pas besoin de toutes les infos contenues dans le JSON de base (pour info j'ai plus de 7000 fichiers JSON qui comprennent tous les films que j'ai vu ainsi que tous les épisodes de série que j'ai vu dans ma vie). Voici la classe que j'essaie de finir avec la factorisation.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    Public Class GrosFilm
        Public Property MesFilmas As Mesfilms()
    End Class
     
    Public Class Mesfilms
        Public Property Id As String
        Public Property Title As String
        Public Property Year As String
        Public Property ReleaseDate As String
        Public Property runtimeMins As Short
        Public Property TypeGenre As String 'pour savoir si c'est un film ou un épisode de série récupéré du champ type dans JSON
        Public Property Parent As String 'ID du parent, soit de la saison de la série, soit de la franchise
        Public Property DirectorListes As TrucListeIN()
        Public Property WriterListes As TrucListeIN()
        Public Property ActorListes As ActorGenListe()
        Public Property CompagnyListes As TrucListeIN()
        Public Property GenreListes As TrucListeKV()
        Public Property CountryListes As TrucListeKV()
    End Class
    Public Class TrucListeIN
        Public Property Id As String
        Public Property Name As String
        Sub New()
     
        End Sub
        Sub New(id As String, name As String)
            Me.Id = id
            Me.Name = name
        End Sub
    End Class
    Public Class TrucListeKV
        Public Property Key As String
        Public Property Value As String
        Sub New()
     
        End Sub
        Sub New(key As String, value As String)
            Me.Key = key
            Me.Value = value
        End Sub
    End Class
     
    Public Class ActorGenListe
        Inherits TrucListeIN
        Public Property AsCharacter As String
        Sub New(id As String, name As String, asCharacter As String)
            MyBase.New(id, name)
            Me.AsCharacter = asCharacter
        End Sub
    End Class
    Et ensuite, je fais une boucle sur l'ensemble des fichiers contenus dans le dossier avec cela
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    Private Sub btnCapterFilm_Click(sender As Object, e As EventArgs) Handles btnCapterFilm.Click
        Dim compteur As Int16
        Dim unGrosFilm As New GrosFilm
        Dim Filmas(-1) As Mesfilms
     
        For Each fil In My.Computer.FileSystem.GetFiles("D:\MesTrucsAMoi\jsonIMDB\Film\Import fait\")
            Dim unFilm As Film = JsonSerializer.Deserialize(Of Film)(File.ReadAllText(fil))
            Dim leFilm As New Mesfilms
            leFilm.Id = unFilm.id
            leFilm.Title = unFilm.title
            leFilm.Year = unFilm.year
            leFilm.ReleaseDate = unFilm.releaseDate
            leFilm.TypeGenre = unFilm.type 'voir plus tard comment mettre épisode en fonction de la source de données
            leFilm.Parent = "" 'c'est là que cela va devenir marrant avec le fichier intermédiaire des épisodes dans les saisons
     
            Dim lesActors(-1) As ActorGenListe
            For Each acto In unFilm.actorList
                Dim LaListeActor As New ActorGenListe(acto.id, acto.name, acto.asCharacter)
                Array.Resize(lesActors, lesActors.Length + 1)
                lesActors(lesActors.Length - 1) = LaListeActor
            Next
            leFilm.ActorListes = lesActors
     
            leFilm.WriterListes = LesListesIN(unFilm.writerList)
            leFilm.DirectorListes = LesListesIN(unFilm.directorList)
            leFilm.CompagnyListes = LesListesIN(unFilm.companyList)
            leFilm.GenreListes = LesListesKV(unFilm.genreList)
            leFilm.CountryListes = LesListesKV(unFilm.countryList)
     
            Array.Resize(Filmas, Filmas.Length + 1)
            Filmas(Filmas.Length - 1) = leFilm
            compteur += 1
            lblCodeIMDB.Text = compteur
        Next
        unGrosFilm.MesFilmas = Filmas
        File.WriteAllText("D:\MesTrucsAMoi\jsonIMDB\MesFilms.json", JsonSerializer.Serialize(unGrosFilm))
    End Sub
    Private Function LesListesIN(ByVal ListeTruc)
        Dim lesTrucs(-1) As TrucListeIN
        For Each truc In ListeTruc
            Dim LaListeTruc As New TrucListeIN(truc.id, truc.name)
            Array.Resize(lesTrucs, lesTrucs.Length + 1)
            lesTrucs(lesTrucs.Length - 1) = LaListeTruc
        Next
        Return lesTrucs
    End Function
    Private Function LesListesKV(ByVal ListeTruc)
        Dim lesTrucs(-1) As TrucListeKV
        For Each truc In ListeTruc
            Dim LaListeTruc As New TrucListeKV(truc.key, truc.value)
            Array.Resize(lesTrucs, lesTrucs.Length + 1)
            lesTrucs(lesTrucs.Length - 1) = LaListeTruc
        Next
        Return lesTrucs
    End Function
    Est-ce que c'est plus clair ainsi ?

  4. #4
    Expert confirmé
    Avatar de popo
    Homme Profil pro
    Analyste programmeur Delphi / C#
    Inscrit en
    Mars 2005
    Messages
    2 972
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Analyste programmeur Delphi / C#
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2005
    Messages : 2 972
    Par défaut
    et ensuite j'ai factorisé des trucs
    Le mécanisme de sérialisation ne peut pas fonctionner si tu change le contrat.

    Un exemple parmi tant d'autres :
    Le JSON renvoyé par l'API contient une propriété directorList.
    La propriété que tu as codé se nomme XXXXXXX DirectorListes.

    Le moteur peut potentiellement ignorer la différence de casse.
    Mais il ne saura "deviner" qu'il faut enlever les lettres E et S.

Discussions similaires

  1. conflit d'inclusions et Héritage de classe
    Par gedeon555 dans le forum C++
    Réponses: 7
    Dernier message: 01/10/2006, 19h48
  2. [POO] Problème héritage des classes PHP4
    Par zana74 dans le forum Langage
    Réponses: 2
    Dernier message: 15/08/2006, 16h00
  3. Héritage de classes.
    Par Berzerk_ dans le forum C++
    Réponses: 48
    Dernier message: 13/08/2006, 23h48
  4. [POO] Héritage vs classe dans une classe
    Par robichou dans le forum Langage
    Réponses: 4
    Dernier message: 06/08/2006, 23h51
  5. [OO] Héritage - Mixins Classes
    Par djmalo dans le forum Langages de programmation
    Réponses: 4
    Dernier message: 01/03/2005, 23h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo