Created by: efritz
This PR adds JSON encoders/decoders to definitions. These currently aren't exposed directly and ends up with empty JSON object literals for definition graphs.
N/A.