changes font for json box and adds some error handling