Switched protocol to JSON