JuliaIO / JSON.jl

JSON parsing and printing
Other
313 stars 101 forks source link

Made `show_json` for composite types more flexible via `propertynames`/`getproperty`. #288

Closed twadleigh closed 5 years ago

twadleigh commented 5 years ago

This lets show_json(..., ::CompositeTypeWrapper) potentially do more interesting things by providing a custom getproperty method.

~It also has show_json apply something to values of type Some.~ I decided it would be safer not to assume this is always the desired behavior.

TotalVerb commented 5 years ago

LGTM. Thanks!