java jsonxpth 解析json跳转到节点

标签 java json parsing jxpath

我有以下数据,我正在使用“http://commons.apache.org/jxpath/”,我想直接读取坐标:[51.464426 -0.382974] 这是纬度,lng 我如何阅读这个快速示例,我搜索周围并发现还有另一个 jsonpath 以及 jsonxpath 是否可以为我工作任何快速解决方案?

{

    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"

}

最佳答案

关于java jsonxpth 解析json跳转到节点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5552818/

相关文章:

go - HCL 解码 : Blocks with multiple labels

java - ConcurrentHashMap 在递增其值时是否需要同步?

java - Apache Shiro 1.4.0 初始化

php - Laravel 5.4 获取 id 的 json 数组

java - 为什么Gson会反序列化1为1.0?

php - 如何将数组中的 php 变量传递给 javascript?

java - Pivot Cloud Foundry 错误 : "Browser detection failed and system property h2.browser not set" - Spring Boot 2

java - Pluralsight 使用 Java 为 Android 和 PC 构建您的第一款游戏

javascript - Node JS 请求和 Cheerio HTML 页面错误

linux - 如何在日志文件中查找变量的下一个实例?