[
https://issues.apache.org/jira/browse/GROOVY-11925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King resolved GROOVY-11925.
--------------------------------
Fix Version/s: 6.0.0-alpha-1
Resolution: Fixed
> Improve consistency of TOML functionality
> -----------------------------------------
>
> Key: GROOVY-11925
> URL: https://issues.apache.org/jira/browse/GROOVY-11925
> Project: Groovy
> Issue Type: Improvement
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Fix For: 6.0.0-alpha-1
>
>
> The Jackson databind libraries already support Typed data access, but we
> don't expose it via {{TomlSlurper}}/{{TomlBuilder}}.
> *{{TomlSlurper}} — new typed parsing methods:*
> - {{parseTextAs(Class<T>, String)}}
> - {{parseAs(Class<T>, Reader)}}
> - {{parseAs(Class<T>, InputStream)}}
> - {{parseAs(Class<T>, File)}}
> - {{parseAs(Class<T>, Path)}}
> *{{TomlBuilder}} — new typed writing method:*
> - {{toToml(Object)}}
> All methods use Jackson databinding and support
> {{@JsonProperty}}/{{@JsonFormat}} annotations.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)