0

we are trying to create a Android application for an existing java web application and we are trying to access the java JSON data.

we are struck on how to send the JSON data to the request.

we thought of creating an java api and send as response for the request.

Please suggest any solution,

Thanks in Advance.

1
  • Does this help? stackoverflow.com/questions/34555260/… Your WebApplication needs to have an API exposes, such as v1/data Then your AndroidAPP will send JSON strings as a body(payload) into v1/data Commented Aug 18, 2021 at 10:46

1 Answer 1

0

In Android ecosystem, a de factor solution is to use https://square.github.io/retrofit/ library to achieve so. Instead of dealing with JSON string, you will be dealing with Java representation class.

To convert your JSON String to Java representation class, you may use the tool - https://www.jsonschema2pojo.org/

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.