2

i want to change the output and input of getJSONObject i have tried using the following methods:

  1. Int to Float SO 2.Int to String SO 3.Int to Char SO

       JSONObject jObject = jArray.getJSONObject(Integer.parseInt(Edittext)-1);
    

The function i am developing works as follows, someone enters a text, if the texts is in the jsonObject section of my json, the values which it contains are returned. The text or id, contains Code 39 coding, 0-9,A-Z,-(dash),.(dot),$(dollar-sign),/(forward-slash),+(plus-sign),%(percent-sign) and a space. Resource: Code 39 info SO I thought the best way to make this possible was to try to change the jsonobject input and or output to chars..

Obviously i also need to change the (Integer.parseInt(Edittext)-1);

Is there a way? or am i just wasting my time here?? As the database im searching contains 20.000 values, i am not sure i can make use of .ReplaceAll("value").

Thanks for any help i might receive.

Community
  • 1
  • 1
borton
  • 21
  • 1

0 Answers0