Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Make JSON serialization consider IJavaScript tokens #10

Closed
thrau opened this issue Jul 8, 2014 · 0 comments
Closed

Make JSON serialization consider IJavaScript tokens #10

thrau opened this issue Jul 8, 2014 · 0 comments
Milestone

Comments

@thrau
Copy link
Owner

thrau commented Jul 8, 2014

currently

map.put("property", new JsCall("get", "foobar"));
new JsObject(map);

would translate into

{"property":{"function":{"identifier":"get"},"arguments":[{"value":"foo"}]}}

what would be more sensible is

{"property": get('foo')}

org.rauschig.wicketjs.util.JsonSerializer (more the jackson ObjectMapper) has to be adapted for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant