Ticket #285 (new defect)
Add methods to the kauri JSON object and array like in org.json (get<DataType> methodes)
| Reported by: | dd | Owned by: | mpo |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.5 |
| Component: | -- unknown -- | Version: | trunk |
| Keywords: | JsonObject | Cc: |
Description
For instance add getInteger, getString, getDate, etc.
Also add a constructor that can parse a string to create the JSONobject.
new JSonObject (String jsonString){...}
public String getString(String field){
String result = null;
if (containsKey(key))
{
result = (get(key).toString());
}
return result;
}
....
Change History
Note: See
TracTickets for help on using
tickets.