JsonObject json = new JsonObject();
json.addProperty("type", "hello");
System.out.println(json.get("type").toString().equals("hello"));
The above print statement should technically give "true" right? But am getting "false"...am kind of novice to java..."please bare with this novice question".
Please let me know, whats wrong with the code?
json.get("type").toString()and mystery will be solvedtoString, usegetAsString.get?