I'm writing a Projekt with Android Studio, where I need to parse a JSON-String. But if i try to parse it with JSONObjects, I get always null, this is my code:
import org.json.JSONObject;
public class JSONTest {
public void test() {
JSONObject object = new JSONObject("{\"test\":\"bla\"}");
System.out.println(object.getString("test"));
}
}
and it returns always null. I tried many difrent ways to solve this, but it never worked. Is there any issue with Android Studio?