# To\_json / to\_xml: where to find?

**URL:** <https://www.ruby-forum.com/t/to-json-to-xml-where-to-find/195216>\
**Category:** Ruby\
**Created:** [September 20, 2010, 1:20am UTC](https://www.ruby-forum.com/t/to-json-to-xml-where-to-find/195216 "2010-09-20T01:20:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trapper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@trapper](https://www.ruby-forum.com/u/trapper)\
**Post date:** [September 20, 2010, 1:20am UTC](https://www.ruby-forum.com/t/to-json-to-xml-where-to-find/195216/1 "2010-09-20T01:20:23Z")

</div>

I’m trying to use to\_xls, but are running into documentation problems:  
Instead of completely describing the options, the author writes:

“The builder options are the same as to\_json / to\_xml, except for the  
:include.”

The same did the guy who wrote to\_csv. Really great.

I can’t find neither to\_json nor to\_xml. Where to find these gems?

---

<div class="post-metadata">

**Author:** ![trapper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@trapper](https://www.ruby-forum.com/u/trapper)\
**Post date:** [September 20, 2010, 4:24am UTC](https://www.ruby-forum.com/t/to-json-to-xml-where-to-find/195216/2 "2010-09-20T04:24:42Z")

</div>

On Mon, Sep 20, 2010 at 8:20 AM, Fritz T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m trying to use to\_xls, but are running into documentation problems:  
> Instead of completely describing the options, the author writes:
> 
> Â “The builder options are the same as to\_json / to\_xml, except for the  
> :include.”
> 
> The same did the guy who wrote to\_csv. Really great.
> 
> I can’t find neither to\_json nor to\_xml. Where to find these gems?

At least to\_json is part of the json library in stdlib, docs at:  
[http://ruby-doc.org/ruby-1.9/classes/JSON/Ext/Generator/GeneratorMethods/Hash.html](http://ruby-doc.org/ruby-1.9/classes/JSON/Ext/Generator/GeneratorMethods/Hash.html)
