New method: .serializeJSON(), Fixed the code style.