Which is the correct way to write multiple picture objects in JSON data format?

one article, multiple pictures, which is correct?

the first way to write:

{   
    "status": 0,   
    "data":[ 

    
         {  
            "ID":"2",  
            "name": "",  
            "info":"16",
            "img":{
                 "imgs":"img/photo/20180521-01.jpg",
                 "imgs":  "img/photo/20180521-02.jpg",
                 "imgs": "img/photo/20180521-03.jpg"
                 }
        },

         {  
            "ID":"1",  
            "name": "",  
            "info":"16",
            "imgs":"img/photo/20180521-02.jpg"
        
        },
    
    ] 
} 

second way of writing:

{   
    "status": 0,   
    "data":[ 

    
         {  
            "ID":"2",  
            "name": "",  
            "info":"16",
            "img":{
                 "imgs1":"img/photo/20180521-01.jpg",
                 "imgs2":  "img/photo/20180521-02.jpg",
                 "imgs3": "img/photo/20180521-03.jpg"
                 }
        },

         {  
            "ID":"1",  
            "name": "",  
            "info":"16",
            "imgs":"img/photo/20180521-02.jpg"
        
        },
    
    ] 
} 
Mar.22,2021

{   
    "status": 0,   
    "data":[     
         {  
            "ID":"2",  
            "name": "",  
            "info":"16",
            "imgs":[
                 "img/photo/20180521-01.jpg",
                 "img/photo/20180521-02.jpg",
                 "img/photo/20180521-03.jpg"
             ]
        },

         {  
            "ID":"1",  
            "name": "",  
            "info":"16",
            "imgs":["img/photo/20180521-02.jpg"]
        
        }
    ] 
} 

the data structure can be determined at will, but try to parse regularly and consider traversal performance if necessary


should be a multiple array.

"data":[ 

    
         {  
            "ID":"2",  
            "name": "",  
            "info":"16",
            "img":[
                 {"imgs1":"img/photo/20180521-01.jpg"},
                 {"imgs2":  "img/photo/20180521-02.jpg"},
                 {"imgs3": "img/photo/20180521-03.jpg"}
                 ]
        },

         {  
            "ID":"1",  
            "name": "",  
            "info":"16",
            "imgs":[{"img/photo/20180521-02.jpg"}]
        
        },
    
    ] 
Menu