libyang does not detect key if it is not the first child in the data set #2435
              
                
                  
                  
                    Answered
                  
                  by
                    EstherLerouzic
                  
              
          
                  
                    
                      EstherLerouzic
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Do you plan to support loading json data with the case where the child which is the key of a list could be present in a different place in the list than the first place ? (ref discussion #1396) for example and data: | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            EstherLerouzic
          
      
      
        Oct 6, 2025 
      
    
    Replies: 1 comment 1 reply
-
| Why do you think such data are not supported? I have just tried it and libyang parses these data just fine, it just reorders them after parsing so that the keys are first. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Thank you for your response. I now understand that libyang properly handles this use case.
I face this issue in my python project via this package https://github.com/Telecominfraproject/oopt-gnpy-libyang that is based on probably an older version of libyang. . So this means that this issue has probably been solved since the integration of libyang in this python package ... Sorry for the question and thank you for this clarification!