rsanchez / json

Output ExpressionEngine data in JSON format.
http://devot-ee.com/add-ons/json/
101 stars 234 forks source link

root nodes #40

Closed stewartmckee closed 10 years ago

stewartmckee commented 10 years ago

Hi,

We needed to add a root node to our json output, i've added a root_node option and an item_root_node option to allow this to be set for the output.

Stewart.

stewartmckee commented 10 years ago

sorry, forgot to create a feature branch for these, so they are bundled together. Second update uses the numeric/decimal/integer to convert the data type prior to json encoding.

rsanchez commented 10 years ago

I like both these changes, thanks!