https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112016-08-03T23:01:32ZRuby Issue Tracking SystemRuby master - Misc #12641: JSON documentation incompletehttps://redmine.ruby-lang.org/issues/12641?journal_id=599082016-08-03T23:01:32ZMSP-Greg (Greg L)
<ul></ul><p>Ronald Fischer wrote:</p>
<blockquote>
<p>The documentation of the JSON stdlib class (i.e. <a href="http://ruby-doc.org/stdlib-2.2.5/libdoc/json/rdoc/JSON.html" class="external">http://ruby-doc.org/stdlib-2.2.5/libdoc/json/rdoc/JSON.html</a>) 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).</p>
</blockquote>
<p><code>from_json</code>?</p>
<p>Maybe you're confusing it with Rails?</p>
<p><a href="https://msp-greg.github.io/Rails-4.2/ActiveModel/Serializers/JSON.html#from_json-instance_method" class="external">ActiveModel::Serializers::JSON#from_json</a></p> Ruby master - Misc #12641: JSON documentation incompletehttps://redmine.ruby-lang.org/issues/12641?journal_id=948962021-11-25T07:32:26Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Third Party's Issue</i></li></ul><p>Please submit a patch/pull-request to <a href="https://github.com/flori/json/" class="external">https://github.com/flori/json/</a></p>