Rails parses JSON automatically when proper headers are present