Class Object
In: lib/json.rb
Parent: Object
StringScanner Parser JSONTreeView MainWindow Gtk::TreeView OptionsMenu EditMenu PopUpMenu FileMenu Gtk::Window Enumerable TreeIter Gtk State Integer FalseClass Array Hash Class Float NilClass TrueClass String lib/json.rb lib/json/editor.rb MenuExtension lib/json/editor.rb Gtk Editor JSON Kernel TopLevel

Methods

to_json  

Public Instance methods

Converts this object to a string (calling to_s), converts it to a JSON string, and returns the result. This is a fallback, if no special method to_json was defined for some object. state is a JSON::State object, that can also be used to configure the produced JSON string output further.

[Source]

     # File lib/json.rb, line 472
472:   def to_json(*) to_s.to_json end

[Validate]