Ticket #285 (new defect)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by mpo

  • Milestone changed from 0.4 to 0.4.1

comment:2 Changed 3 years ago by jgou

  • Milestone changed from 0.4.1 to 0.5
Note: See TracTickets for help on using tickets.