Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 405474

Summary: Support custom JSON in RemoteObject and OperationHandler
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ralf Sternberg CLA 2013-04-11 10:24:44 EDT
Custom components may need to synchronize properties using custom JSON, e.g. a mixed array or nested object. At the moment, RemoteObject.set() accepts only some basic types.

I think we should publish the new JSON API (currently in o.e.rap.rwt.internal.json) and provide a method RemoteObject.set( String, JsonValue ).

Also for the client-to-server case we'd need a solution.
Comment 1 Ralf Sternberg CLA 2013-05-06 05:17:08 EDT
The new JSON API has moved to the public package org.eclipse.rap.json. As of 09f7c9542a5dc28d8b2b4f2ef8b73d35d7f83465, RemoteObject has a method set( String, JsonValue ) and call( String, JsonObject ). The Map types in OperationHandler have been replaced with JsonObject as well.

With this change, the API in the remote package is not marked as "provsional" anymore.