use JSON.stringify instead of constructing JSON data manually
typeof(somethhing) always evaluates to true