Line | |
---|
1 | package json.serializers; |
---|
2 | |
---|
3 | import com.ether.Parameter; |
---|
4 | import com.ether.Plateform; |
---|
5 | import net.sf.json.JSONObject; |
---|
6 | import net.sf.json.JsonConfig; |
---|
7 | |
---|
8 | public class ParameterJsonSerializer extends AbstractJsonSerializer<Parameter> |
---|
9 | { |
---|
10 | public JSONObject process( final Parameter parameter, final JsonConfig jsonConfig ) |
---|
11 | { |
---|
12 | final JSONObject result = new JSONObject(); |
---|
13 | |
---|
14 | serialize( result, "id", parameter.getId(), jsonConfig ); |
---|
15 | serialize( result, "name", parameter.getName(), jsonConfig ); |
---|
16 | |
---|
17 | return result; |
---|
18 | } |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.