2011-04-05 2 views
1

다음 데이터가 있고 "http://commons.apache.org/jxpath/"를 사용하고 있습니다. 좌표를 직접 읽으려고합니다 : [51.464426 -0.382974] 이는 위도이고, lng 어떻게 내가이 빠른 예를 읽고 주위를 검색 할 수 있고 또 다른 jsonpath가 있다는 것을 알았습니다. jsonxpath가 저에게 어떤 빠른 해결책으로도 작용할 것입니까?java jsonxpth parsing json 노드로 점프

{ 

    authenticationResultCode: "ValidCredentials" 
    brandLogoUri: http://dev.virtualearth.net/Branding/logo_powered_by.png 
    copyright: "Copyright © 2011 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation." 
    - 
    resourceSets: [ 
     - 
     { 
      estimatedTotal: 1 
      - 
      resources: [ 
       - 
       { 
        __type: "Location:http://schemas.microsoft.com/search/local/ws/rest/v1" 
        - 
        bbox: [ 
         51.46056328242933 
         -0.39124021297987016 
         51.46828871757068 
         -0.3747077870201298 
        ] 
        name: "TW4 5AP, Hounslow, United Kingdom" 
        - 
        point: { 
         type: "Point" 
         - 
         coordinates: [ 
          51.464426 
          -0.382974 
         ] 
        } 
        - 
        address: { 
         adminDistrict: "England" 
         adminDistrict2: "Hounslow" 
         countryRegion: "United Kingdom" 
         formattedAddress: "TW4 5AP, Hounslow, United Kingdom" 
         postalCode: "TW4 5AP" 
        } 
        confidence: "High" 
        entityType: "Postcode1" 
       } 
      ] 
     } 
    ] 
    statusCode: 200 
    statusDescription: "OK" 
    traceId: "16c9b05027c4486fa3adab793cfdb97e|EWRM001665|02.00.82.2800|EWRMSNVM001812, EWRMSNVM001724" 

} 

답변