Issue #12641 has been updated by Greg L.


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](https://msp-greg.github.io/Rails-4.2/ActiveModel/Serializers/JSON.html#from_json-instance_method)

----------------------------------------
Misc #12641: JSON documentation incomplete
https://bugs.ruby-lang.org/issues/12641#change-59908

* Author: Ronald Fischer
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
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).



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>