# Json - composite objects

**URL:** <https://www.ruby-forum.com/t/json-composite-objects/169663>\
**Category:** Rails\
**Created:** [June 6, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/json-composite-objects/169663 "2009-06-06T14:49:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@karl](https://www.ruby-forum.com/u/karl)\
**Post date:** [June 6, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/json-composite-objects/169663/1 "2009-06-06T14:49:41Z")

</div>

hi everyone,

i came across a very strange thing. i’m using ajax with jquery. when i  
build up the parameters as json i’m creating my data to pass like  
this : “{ picture: { photo: this.value, visible: 1, title: ‘’,  
description: ‘’ }, bla: ‘’ }” . as far as i know this should be the  
right json syntax. when i’m reading the params im my controller i’m  
getting this “{“bla”=\>”", “id”=\>“3”, “picture”=\>"[object Object]",  
“\_”=\>“1244292346625”}" as a consequence the stringfy\_keys method is  
not found and i can’t process.  
does anyone have a clue what i’m missing and give me a hint?

greetings, karl
