Project

General

Profile

Actions

Misc #12641

closed

JSON documentation incomplete

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

Status:
Third Party's Issue
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).

Updated by MSP-Greg (Greg L) over 7 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

Updated by hsbt (Hiroshi SHIBATA) over 2 years ago

  • Status changed from Open to Third Party's Issue

Please submit a patch/pull-request to https://github.com/flori/json/

Actions

Also available in: Atom PDF

Like0
Like0Like0