This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to fetch correct json string

 
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



 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!