Skip to content

json5 support with comments #134

Closed Answered by cowtowncoder
lmajano asked this question in Q&A
Discussion options

You must be logged in to vote

You'd first configure JsonFactory with settings (JsonReadFeatures), then JSON instance created with factory. So something like:

JsonFactory jf = JsonFactory.builder().with(JsonReadFeature.ALLOW_JAVA_COMMENTS).build();
JSON jr = JSON.builder(jf).build();
POJO value = jr.beanFrom(POJO.class, jsonString);

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cowtowncoder
Comment options

Answer selected by lmajano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants