Skip to content

GEODE-5013 Replace org.json with Jackson in GfJsonObject#3288

Closed
bschuchardt wants to merge 8 commits intodevelopfrom
feature/GEODE-5013
Closed

GEODE-5013 Replace org.json with Jackson in GfJsonObject#3288
bschuchardt wants to merge 8 commits intodevelopfrom
feature/GEODE-5013

Conversation

@bschuchardt
Copy link
Copy Markdown
Contributor

@bschuchardt bschuchardt commented Mar 11, 2019

This removes org.json as a dependency in geode-core and associated test
modules. GfJsonObject and GfJsonArray are ported to use the same basic
Jackson ObjectMapper setup as QueryResultFormatter so that we now have a
uniform mechanism for managing JSON documents for querying/gfsh.

The geode-web-api and geode-pulse modules still use the geode-json
module. When/if they are ported to use GfJsonObject/Array we can delete
the geode-json module.

Thank you for submitting a contribution to Apache Geode.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:

Please ensure that once the PR is submitted, you check travis-ci for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.

This removes org.json as a dependency in geode-core and associated test
modules.  GfJsonObject and GfJsonArray are ported to use the same basic
Jackson ObjectMapper setup as QueryResultFormatter so that we now have a
uniform mechanism for managing JSON documents for querying/gfsh.

The geode-web-api and geode-pulse modules still use the geode-json
module.  When/if they are ported to use GfJsonObject/Array we can delete
the geode-json module.
compile('com.healthmarketscience.rmiio:rmiio')

compile(project(':geode-common'))
compile(project(':geode-json'))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this line; will this impact building geode-web-api and geode-pulse?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The geode-web-api includes geode-json as a dependency. There are tickets for getting rid of it there and in geode-pulse.

try {
assertThat(launcher.status().getStatus()).isEqualTo(Status.ONLINE);
} catch (Exception e) {
e.printStackTrace();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove it?

gen.writeEndObject();
}

void _serialize(Collection value, JsonGenerator gen) throws IOException {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove underscore from method name....

@bschuchardt bschuchardt deleted the feature/GEODE-5013 branch March 15, 2019 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants