Jackson core java jar

Download com.fasterxml.jackson.core JAR files with all dependencies

jackson-databind from group com.fasterxml.jackson.core (version 2.15.2)

Artifact jackson-databind
Group com.fasterxml.jackson.core
Version 2.15.2
Last update 30. May 2023
Organization not specified
URL https://github.com/FasterXML/jackson
License The Apache Software License, Version 2.0
Dependencies amount 2
Dependencies jackson-annotations , jackson-core ,
There are maybe transitive dependencies!

jackson-core from group com.fasterxml.jackson.core (version 2.15.2)

Artifact jackson-core
Group com.fasterxml.jackson.core
Version 2.15.2
Last update 30. May 2023
Organization not specified
URL https://github.com/FasterXML/jackson-core
License The Apache Software License, Version 2.0
Dependencies amount 0
Dependencies No dependencies
There are maybe transitive dependencies!

jackson-annotations from group com.fasterxml.jackson.core (version 2.15.2)

Artifact jackson-annotations
Group com.fasterxml.jackson.core
Version 2.15.2
Last update 30. May 2023
Organization not specified
URL https://github.com/FasterXML/jackson
License The Apache Software License, Version 2.0
Dependencies amount 0
Dependencies No dependencies
There are maybe transitive dependencies!

Page 1 from 1 (items total 3)

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Читайте также:  Python list libraries installed

Core part of Jackson that defines Streaming API as well as basic shared abstractions

License

FasterXML/jackson-core

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

This project contains core low-level incremental («streaming») parser and generator abstractions used by Jackson Data Processor. It also includes the default implementation of handler types (parser, generator) that handle JSON format. The core abstractions are not JSON specific, although naming does contain ‘JSON’ in many places, due to historical reasons. Only packages that specifically contain word ‘json’ are JSON-specific.

This package is the base on which Jackson data-binding package builds on. It is licensed under Apache License 2.0.

Alternate data format implementations (like Smile (binary JSON), XML, CSV, Protobuf, and CBOR) also build on this base package, implementing the core interfaces, making it possible to use standard data-binding package regardless of underlying data format.

Project contains versions 2.0 and above: source code for earlier (1.x) versions can be found from Jackson-1 github repo.

Functionality of this package is contained in Java package com.fasterxml.jackson.core .

To use the package, you need to use following Maven dependency:

dependency> groupId>com.fasterxml.jackson.coregroupId> artifactId>jackson-coreartifactId> version>$ version> dependency>

or download jars from Maven repository or links on Wiki. Core jar is a functional OSGi bundle, with proper import/export declarations.

Package has no external dependencies, except for testing (which uses JUnit ).

For non-Maven use cases, you download jars from Central Maven repository.

Core jar is also a functional OSGi bundle, with proper import/export declarations, so it can be use on OSGi container as is.

Jackson 2.10 and above include module-info.class definitions so the jar is also a proper Java module (JPMS).

Jackson 2.12 and above include additional Gradle 6 Module Metadata for version alignment with Gradle.

Usage typically starts with creation of a reusable (and thread-safe, once configured) JsonFactory instance:

// Builder-style since 2.10: JsonFactory factory = JsonFactory.builder() // configure, if necessary: .enable(JsonReadFeature.ALLOW_JAVA_COMMENTS) .build(); // older 2.x mechanism, still supported for 2.x JsonFactory factory = new JsonFactory(); // configure, if necessary: factory.enable(JsonReadFeature.ALLOW_JAVA_COMMENTS);

Alternatively, you have an ObjectMapper (from Jackson Databind package) handy; if so, you can do:

JsonFactory factory = objectMapper.getFactory();

All reading is by using JsonParser (or its sub-classes, in case of data formats other than JSON), instance of which is constructed by JsonFactory .

All writing is by using JsonGenerator (or its sub-classes, in case of data formats other than JSON), instance of which is constructed by JsonFactory :

Jackson-core package baseline JDK requirement:

List is incomplete due to recent addition of compatibility checker.

for information on Android SDK versions to Android Release names see Android version history

Starting with Jackson 2.15, releases of this module will be SLSA compliant: see issue #844 for details.

Release process is triggered by

script which uses Maven Release plug-in under the hood (earlier release plug-in was directly invoked).

Jackson components are supported by the Jackson community through mailing lists, Gitter forum, Github issues. See Participation, Contributing for full details.

Available as part of the Tidelift Subscription.

The maintainers of jackson-core and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Differences from Jackson 1.x

Project contains versions 2.0 and above: source code for the latest 1.x version (1.9.13) is available from FasterXML/jackson-1 repo (unmaintained).

Note that the main differences compared to 1.0 core jar are:

  • Maven build instead of Ant
  • Annotations carved out to a separate package (that this package depends on)
  • Java package is now com.fasterxml.jackson.core (instead of org.codehaus.jackson )
  • Project Wiki has JavaDocs and links to downloadable artifacts
  • Jackson (portal) has links to all FasterXML-maintained «official» Jackson components
  • Jackson Docs is the portal/hub for all kinds of Jackson documentation

About

Core part of Jackson that defines Streaming API as well as basic shared abstractions

Источник

Jackson Installation

The Java JSON API called Jackson consists of one core JAR file (project) and two other JAR files that use the core JAR file. The three JAR files (projects) in the Jackson JSON API are:

These projects use each other in that sequence too. Jackson Annotation uses the Jackson Core features, and the Jackson Databind uses Jackson Annotation.

Jackson also has a few extra projects for parsing other data formats than JSON. For instance, to read and write CBOR you can add the jackson-dataformat-cbor artifact to your classpath too.

In order to «install» Jackson in your Java application you need to add these JAR files to the classpath of your application. There are several ways to do so. I will cover two here.

Adding the JAR Files to Your Classpath

In order to use any of the Jackson projects (JAR files) you must add the corresponding JAR file to the classpath of your application. You can do so in several different ways.

Before you even start adding the Jackson JAR files to your classpath, you need to decide what version of the Jackson JSON API to use. To do so, go to the Jackson website and see what versions are available. If you are not already using a specific version of Jackson in your project, use the latest stable version. Write the version number down. You may need it later.

You can find a list of Jackson releases here:

Jackson Maven Dependencies

If your project uses Maven to build (and resolve + download dependencies), you need to add Jackson as a dependency to your project’s POM file. Here is how Jackson as Maven dependencies look:

 com.fasterxml.jackson.core jackson-core 2.9.6  com.fasterxml.jackson.core jackson-annotations 2.9.6  com.fasterxml.jackson.core jackson-databind 2.9.6  

Note, that both jackson-annotations and jackson-databind have «transitive dependencies» to jackson-core (and jackson-databind to jackson-annotations ). This means, that if you plan to use the jackson-databind project, you just need to include that as dependency in your Maven POM file. Then it will transitively include the other two projects as dependencies. Regardless, I like to add my dependencies explicitly so I can see what I am using (but that’s just me).

In order to read and write CBOR encoded data with Jackson you will also need to add the Jackson CBOR Maven dependency:

 com.fasterxml.jackson.dataformat jackson-dataformat-cbor 2.9.6  

In order to read and write MessagePack encoded data with Jackson you will also need to add the Jackson MessagePack Maven dependency:

 org.msgpack jackson-dataformat-msgpack 0.8.16  

In order to read and write YAML encoded data with Jackson you will also need to add the Jackson YAML Maven dependency:

 com.fasterxml.jackson.dataformat jackson-dataformat-yaml 2.9.0  

Adding the JAR Files Directly to the Classpath

Another option is to add the Jackson JAR files directly to the classpath of your application. To do so you must first download the JAR files. You can download the finished JAR files via the central Maven repository. Go to:

Search for the project you want to use (e.g. jackson-core , jackson-annotation or jackson-databind ). Once you find the right project, make sure you click the «all versions» link next to the version number in the search result. That will show you a list of the previous versions of that project. Click around until you find a link directly to the JAR file for that project and that version. Then download the JAR file.

Once the JAR files are downloaded, add them to the classpath of your project. You can do so within your IDE, and / or within the scripts (bash or cmd) you use to run your application.

Источник

Оцените статью