I'm trying to write a cordova plugin. I've the following JSON data:
JSONObject obj = {"amount":100, "desc":"blabla",id:123}
and I'm trying to iterate the JSON keys and put keys and values to intent.putExtra(key,val)
Example:
Iterator<String> iter = obj.keys();
while (iter.hasNext()) {
    key = iter.next();
    value = obj.getString(key);
    intent.putExtra(key, value);
}
With this code I get the error
error: cannot find symbol intent.putExtra(key, value);
Anyone can say me how correct iterate JSON data and execute putExtra()?

intent?