Delete import json. Several syntax changes.

Import json called twice. In first it will call an exception, if json
module not installed.