Fix parse exception with hash in params

I recently realized that hash in parameters is not well formatted when there is another sub hash nested. Here you've got the fix.