Fix compile error when compiling without JSON

Add a #ifdef around the notes part of the summary.