Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vietj/jsonproc
A compiler processor for Javac that makes JSON closer to Java
https://github.com/vietj/jsonproc
Last synced: 20 days ago
JSON representation
A compiler processor for Javac that makes JSON closer to Java
- Host: GitHub
- URL: https://github.com/vietj/jsonproc
- Owner: vietj
- Created: 2013-11-09T19:57:51.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-09T19:58:05.000Z (about 11 years ago)
- Last Synced: 2024-11-08T20:49:54.949Z (2 months ago)
- Language: Java
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A processor for Javac that provides similar JSON notation for Java with json-simple lib.
# Example 1
JSONObject obj = new JSONObject();
obj.foo = "abc";equivalent to
obj.put("foo", "abc");
# Example 2
JSONObject ojb = new JSONObject() {{
foo = "abc";
}};equivalent to
JSONObject obj = new JSONObject() {{
put("foo", "abc");
}};# Status
Experimental, put work, get is not implemented, many case not implemented, but it works :-)