Tried to implement JSON and log, but failed.