fixing JSON posts