JSONEncode improperly handling double-quotes. Refactored duplicated error msg.
JSONEncode improperly handling double-quotes. Refactored duplicated error msg.

ludagoo/Perfect,xuephil/Perfect,ludagoo/Perfect,ambientlight/Perfect,ludagoo/Perfect,ambientlight/Perfect,xuephil/Perfect,xuephil/Perfect,xuephil/Perfect,ludagoo/Perfect,ambientlight/Perfect