bartleby.language.json
fromJSON
(fromJSON object)
Convert object into an instance of either Reference or Gloss, depending on whether they key "pubtype" is present in object
ToJSON
protocol
Complex data structures to be transformed before serializing as JSON should implement this protocol to facilitate cross-platform use. Then, in platform-dependent code, this protocol can be extended to implement that platform's JSON serialization protocol (e.g., JSONWriter).
members
toJSON
(toJSON this)
Convert this into a (flat) JSON-friendly structure