Use JSON for diary

XSS!