1

How to send JSON file in API as a parameter in android?

like

{
"param1" : "xyz123",
"file":"demo.json"
}

I have to send this JSON in an API. Here demo.json is file.

Abhinav Tiwari
  • 131
  • 1
  • 1
  • 5

1 Answers1

0

You can send the json file as a multipart upload. Libraries like retrofit can make making API calls simpler.

mayojava
  • 189
  • 3
  • 5