我想知道如何使用Gradle将Boon或Jackson解析器添加到Android项目中?

我找到了如何使用GSON,但找不到任何关于Boon或Jackson的信息.

推荐答案

Here's what have in my dependencies section in my build.gradle file for Jackson:

compile (
    [group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.4.1'],
    [group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.4.1'],
    [group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.4.1']
)

如果您正在try 使用jax-rs,您还需要更多的命令:

    [group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-base', version: '2.4.1'],
    [group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version: '2.4.1'],
    [group: 'com.fasterxml.jackson.module', name: 'jackson-module-jaxb-annotations', version: '2.4.1']

Json相关问答推荐

使用Powershell脚本将配置信息块添加到json文件

JOLT拉平数组

如何在Power BI中集成API和JSON数据后将数据转换为表?

Golang返回的JSON顶级字段是可变的.如何在 struct 中使用

JQ-JSON将键转换为对象

Jolt:数组中两个字符串的连接

如何使用Powershell查找所有包含特定键值对的JSON对象并迭代所有对象?

JOLT转换并向输出添加新数组

打印与 JSON 和 PowerShell 中的模式匹配的子项的父项名称

为什么根据其他工具,来自 aws rds 的 JSON 在 Docker 中格式错误运行?

坚持弄清楚如何使用 api 响应来调用以从不同的链接检索响应

Retrofit 2.0 如何解析嵌套的 JSON 对象?

将json字符反序列化为枚举

字符串的 Gson 数组到 JsonArray

有必要清理 JSON 吗?

如何判断 JSON 响应元素是否为数组?

如何转换为 D3 的 JSON 格式?

使用新的 Net Core 3.0 Json 时忽略属性

使用 axios 在 POST multipart/form-data 请求中发送文件和 json

在没有 ASP.NET Core 的情况下将 IConfigurationSection 绑定到复杂对象