Skip to content
sneppets

sneppets

  • Privacy

JSONException : A JSONObject text must begin with ‘{‘ at 1 [character 2 line 1]

December 14, 2019February 12, 2020 Editorial StaffLeave a Comment on JSONException : A JSONObject text must begin with ‘{‘ at 1 [character 2 line 1]

Are you getting error “A JSONObject text must begin with ‘{‘ at 1 [character 2 line 1]” while parsing JSON response. First you need to check whether JSON string/response is valid or invalid JSON.

Java java, JsonObject, org.json.JSONObject

Convert JSON string to JsonObject using Google Gson

November 14, 2019 Editorial StaffLeave a Comment on Convert JSON string to JsonObject using Google Gson

It is very common that Java web services receives JSON string. If you wanted to convert JSON string to Jsonobject using Google Gson then there are two ways to achieve this. JSON string to JsonObject Example Google Gson is a… Read More!

Java gson, JsonObject
Copyright © 2018 Sneppets. All Rights Reserved