Sorry but doesn't work like that. It seems that call to_json in a render json block leads to your whole json becoming a single string.