Sidharth
Sidharth

Reputation: 79

Send JSON to PHP MYSQL Server POST Method?

I am a beginner. This is my json array : ["1","2","3","4"]

How do i send this simple json array to php mysql server using volley or retrofit 2? Any example related to this would also help!

Please help me out guys!

Thanks in advance

Upvotes: 0

Views: 125

Answers (1)

Wilson Christian
Wilson Christian

Reputation: 650

You can convert it to String and send it to server, where you can again decode it to jsonArray and get the values.

Upvotes: 1

Related Questions