Parsing escaped JSON String org.json.JSONException: Missing value at character 1
I have an escaped string in a variable and I am trying to make a JSON object from the string. It's throwing the following Exception: org.json.JSONException: Missing value at character 1 After thorough research, I couldn't find an answer on Stack Overflow. If the string is escaped you need to unescape it before trying to make a JSONObject out of it. Below is a snippet of my code: String escapedString = StringEscapeUtils.unescapeJava(escapedString); JSONObject Json = new JSONObject(escapedString); I am open to hearing any other solutions besides what I mentioned here.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.