use jsonencode for post data