parse posData as JSON string, and handle JSON ParseErrors