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"}]
        
        },
    
    ] 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3fa0e-2b1ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3fa0e-2b1ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?