I am using com.amazonaws.util.json.JSONObject
In the documentation it says
public String optString(String key)
Get an optional string associated with a key. It returns an empty string if there is no such key. If the value is not a string and is not null, then it is coverted to a string.
Parameters: key - A key string. Returns: A string which is the value.
I have a json object like {"time":1505900658464}
and when i use optstring i expect it to convert this long value to string ,but it actually returns " " (instead of converted long values as string).Am i missing something?