jdereg / json-io

Convert Java to JSON. Convert JSON to Java. Pretty print JSON. Java JSON serializer. Deep copy Java object graphs.
Apache License 2.0
330 stars 114 forks source link

chore: make fields accessible to enforce trustable lookup #292

Closed ozhelezniak-talend closed 3 weeks ago

ozhelezniak-talend commented 3 weeks ago

@jdereg I had in mind smth like that

jdereg commented 3 weeks ago

I merged your latest PR. Would you mind updating user-guide-readOptions.md to document addInjectorFactory()?

Also, so it doesn’t have to be specified each time in the ReadOptionsBuilder, I would think we would want an “addPermanentInjectorFactory()” method too (and document for that as well). The addPermanent* APIs are nice so that you do not have to modified the ReadOptionsBuilder each time, if you want the same options always (at least within in a given service).