fix documentation for creating JSON