Not sure about the reason but Removing lines charset=utf8
from con.setRequestProperty("Content-Type", "application/json; charset=utf8")
resolved the issue.
More Related Contents:
- Parsing JSON Object in Java [duplicate]
- Accessing members of items in a JSONArray with Java
- Convert Json Array to normal Java list
- Custom JSON Deserialization with Jackson
- Using Enums while parsing JSON with GSON
- Convert Json date to java date
- Gson and deserializing an array of objects with arrays in it
- Right way to write JSON deserializer in Spring or extend it
- MessageBodyProviderNotFoundException while running jar from command line
- Gson: Directly convert String to JsonObject (no POJO)
- Case insensitive JSON to POJO mapping without changing the POJO
- Trouble with Gson serializing an ArrayList of POJO’s
- Parsing JSON Array within JSON Object
- Add JsonArray to JsonObject
- Converting json string to java object?
- Gson Serialize field only if not null or not empty
- Make GSON accept single objects where it expects arrays
- JSON date to Java date? [duplicate]
- How do I use PostgreSQL JSON(B) operators containing a question mark “?” via JDBC
- How to parse a JSON string into JsonNode in Jackson?
- How to access nested elements of json object using getJSONArray method
- How can I sort a JSONArray in JAVA [duplicate]
- Jackson: how to prevent field serialization [duplicate]
- Enforce not-null field in JSON object
- The difference between getString() and optString() in Json
- Spring 3.0 making JSON response using jackson message converter
- JSON Jackson parse different keys into same field
- Jackson JSON Deserialization: array elements in each line
- How to send a String array as basic name value pair as HTTPPOST?
- Sending JSONP vs. JSON data?