I'm trying to do something like:
public static final JSONObject MYOBJ = new JSONObject().put("value", "expression");
but eclipse get's mad and says there's an error on the line even though the tool tip shows No solutions available
I've tried changing JSONObject to type String and still the same prob. I'm shying away from hash maps and would really like to use JSON.
** EDIT - code location **
package ...
import ...
public class MyActivity extends Activity {
public static final JSONObject MYOBJ = new JSONObject().put("value", "expression");
... // onCreate etc
}