百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

ig-json-parser

> 编程语言
开源

适用于 Java 项目的快速 JSON 解析器

1.3K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

适用于 Java 项目的快速 JSON 解析器

ig-json-parser

适用于 Java 项目的快速 JSON 解析器。

开始使用

开始使用的最简单方法是查看 maven-example。 如需更多 如需详细示例,请查看单元测试或演示。

Gradle

对于 Java 项目,要使用此库,请在 build.gradle 文件中添加以下内容:

groovy
allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

...

dependencies {
  implementation 'com.github.instagram.ig-json-parser:runtime:master-SNAPSHOT' // the runtime
  implementation 'com.github.instagram.ig-json-parser:processor:master-SNAPSHOT' // the annotation processor
}

对于使用 Android Studio 3.0+ 或 Gradle 4.0+ 的 Android 项目,您可以按照以下步骤启用注解处理器:

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

...

dependencies {
  annotationProcessor 'com.github.instagram.ig-json-parser:processor:master-SNAPSHOT'
  implementation 'com.github.instagram.ig-json-parser:runtime:master-SNAPSHOT'
}

如果您使用的是旧版 Gradle,可以使用旧的 apt 插件来集成注解处理器:

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

...

apply plugin: 'com.neenbedankt.android-apt'

dependencies {
  apt 'com.github.instagram.ig-json-parser:processor:master-SNAPSHOT'
  implementation 'com.github.instagram.ig-json-parser:runtime:master-SNAPSHOT'
}

如果您使用其他构建系统,请参阅 这里 的说明

模型类的要求

每个模型类都应该有一个可包含可见的无参数构造函数。 字段也需要是可包含可见的。

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言