Updated post and get to support arrays