How can I add Boon or Jackson JSON parsers to Android project with Gradle?

前端 未结 2 1043
梦如初夏
梦如初夏 2021-01-30 20:13

I would like to know how can I add Boon or Jackson parser to an android project using Gradle?

I found how to do so with GSON but couldn\'t find anything with Boon or Jac

2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 20:56

    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']
    )
    

    If you're trying to use jax-rs, you'll also need a few more:

        [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']
    

提交回复
热议问题