Details
-
Type:
New Feature
-
Status: Resolved
-
Priority:
Major
-
Resolution: Complete
-
Affects Version/s: None
-
Fix Version/s: 1.1.0.M3
-
Component/s: GENERAL OBJECTS, WEB MVC
-
Labels:None
Description
This addon should provide the following methods to a type marked with either @RooJson, @RooJavaBean or @RooIdentifier:
public String toJson() {..] public static MyType fromJson(String json) {..} public static String toJsonArray(Collection<MyType> collection) {..} public static Collection<MyType> fromJsonArray(String json) {..}
The method names can be adjusted by using the attributes provided in @RooJson. To omit the generation of any of those methods simply provide it with an empty String:
@RooJson(toJson="")
Attachments
Issue Links
- is related to
-
ROO-844 REST controller with JSON / XML
-
- Resolved
-
-
ROO-1242 Compile error in aspectj compile phase occurs when a perfom eclipse is run after upgrade to Spring 3.0.4
-
- Closed
-
-
ROO-1493 RooJavaBean triggers JSON aspects, why?
-
- Resolved
-
- relates to
-
ROO-1800 Generate a full JSON/REST interface via an entity's controller
-
- Resolved
-