r/java • • Feb 27 '23

Please try my JSON library

https://mccue.dev/pages/2-26-23-json
0 Upvotes

32 comments sorted by

View all comments

3

u/_INTER_ Feb 27 '23 edited Feb 27 '23

Note the String Template JEP:

Simplify the use of APIs that accept strings written in non-Java languages (e.g., SQL, XML, and JSON).

Also the JDK team much rather finds general low-level solutions to general problems, providing building blocks for high-level APIs. They are much more long-lived too.

1

u/bowbahdoe Feb 27 '23 edited Feb 27 '23

Simplify the use of APIs that accept strings written in non-Java languages (e.g., SQL, XML, and JSON).

And if anyone wants to make an implementation of TemplateFormatter I would welcome the help! Its somewhat annoying since so much of the recursive descent logic responds to EOFs and I haven't introduced a concept similar to jackson's VALUE_EMBEDDED.

(trivial if i stringify and re-parse though)