Project

General

Profile

Misc #12641

JSON documentation incomplete

Added by rovf (Ronald Fischer) over 3 years ago. Updated over 3 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
[ruby-core:76635]

Description

The documentation of the JSON stdlib class (i.e. http://ruby-doc.org/stdlib-2.2.5/libdoc/json/rdoc/JSON.html) is missing a description, what the user has to do to provide JSON serialization for his own classes (i.e. description of the to_json and from_json callback is missing).

History

Updated by MSP-Greg (Greg L) over 3 years ago

Ronald Fischer wrote:

The documentation of the JSON stdlib class (i.e. http://ruby-doc.org/stdlib-2.2.5/libdoc/json/rdoc/JSON.html) is missing a description, what the user has to do to provide JSON serialization for his own classes (i.e. description of the to_json and from_json callback is missing).

from_json?

Maybe you're confusing it with Rails?

ActiveModel::Serializers::JSON#from_json

Also available in: Atom PDF