Salamek / huawei-lte-api-ts

API For huawei LAN/WAN LTE Modems written in TypeScript
GNU Lesser General Public License v3.0
48 stars 19 forks source link

Bad json format in responses #5

Closed ioull closed 3 years ago

ioull commented 3 years ago

the json returned has always answer stored in an size 1 array like that : Response for api/sms-count (exemple)

{                                                                                                      
  response: {                                                                                                                                                                                    
    LocalUnread: [ '4' ],                                                                                                
    LocalInbox: [ '4' ],                                                                           
    LocalOutbox: [ '6' ],                                                                       
    LocalDraft: [ '1' ],                                                                         
    LocalDeleted: [ '0' ],                                                                                     
    SimUnread: [ '0' ],                                                                            
    SimInbox: [ '0' ],                                                                                 
    SimOutbox: [ '0' ],                                                                            
    SimDraft: [ '0' ],                                                                                                                                                                          
    LocalMax: [ '500' ],                                                                              
    SimMax: [ '20' ],                                                                              
    SimUsed: [ '0' ],                                                                          
    NewMsg: [ '0' ]                                                                                    
  }                                                                                                                                                                                             
}