JRH: Fixing JSON upload