Modify

Ticket #285 (new defect)

Opened 2 years ago

Last modified 18 months 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;

}
....

Attachments

Change History

comment:1 Changed 20 months ago by mpo

  • Milestone changed from 0.4 to 0.4.1

comment:2 Changed 18 months ago by jgou

  • Milestone changed from 0.4.1 to 0.5
View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.