different colour pins & reject non json msg

added code so that each topic has a different colour pin and it will also reject non-json messages.