Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to fetch correct json string  RSS feed

 
pancake leh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently working an android app that login users.Upon login, users are allowed name their own create a file. However, upon executing this function as shown below, the return json contain the JSON string of the login details instead.

I am using a xmapp server.

Does anyone have any idea of the correct way of obtaining the returned json string of the createNewFile details ?




This is my `JSONPARSER` class.





Php files:




index.php





Error faced:

Invalid RequestInvalid Requestn
Error parsing data org.json.JSONException: Value Invalid of type java.lang.String cannot be converted to JSONObject



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!