-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow finer configuration of how certain Objects get printed #307
Comments
Thanks for asking! This is an interesting problem, as the I'll give this some thought and see what I can figure out. If you happen to have any other examples of real-world Java classes that are getting the same |
Maybe this is a case for clojure.datafy?
|
This is now implemented in There is a new option map key to transform random Java classes into other, more manageable data types: I wrote up a whole big thing in the reference manual about how this works (using your example data above). Search the reference manual for |
I just came across the issue that ArrayLists do not break.
The problem is, that this looks like a clojure/edn value that should be broken, but it is just a string from
.toString
.(.toString alist) "[SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING, SOME STRING]"
Coercing that ArrayList to a clojure vector would solve that problem.
Is there a way to configure that behaviour?
I imagine something like:
This could work in general:
(Notation is just an example, of course.)
The text was updated successfully, but these errors were encountered: