Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
used proper annotation to add raw json value in object
Browse files Browse the repository at this point in the history
  • Loading branch information
Taz03 committed Nov 22, 2023
1 parent 17b1874 commit b677204
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRawValue;

@JsonIgnoreProperties(ignoreUnknown = true)
public class InstagramResponse {
@JsonRawValue
private String json;

@JsonProperty("status")
Expand All @@ -22,12 +24,8 @@ public class InstagramResponse {
@JsonProperty("checkpoint_url")
private String checkpointUrl;

public void setJson(String json) {
this.json = json;
}

/**
* @return The raw json response
* @return The raw json response from Instagram
*/
public String getJson() {
return json;
Expand Down

0 comments on commit b677204

Please sign in to comment.