% JSON highlighting
%
%  Based on the following:
%    https://tex.stackexchange.com/a/433961
%    Copright edi - CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)

\colorlet{numb}{magenta!60!black}

\lstdefinelanguage{JSON}{
    commentstyle=\color{codecomment},
    stringstyle=\color{codestring},
    showstringspaces=false,
    breaklines=true,
    breakatwhitespace=false,
    stepnumber=1,
    string=[s]{"}{"},
    comment=[l]{:\ "},
    morecomment=[l]{:"},
    literate=
        *{0}{{{\color{numb}0}}}{1}
         {1}{{{\color{numb}1}}}{1}
         {2}{{{\color{numb}2}}}{1}
         {3}{{{\color{numb}3}}}{1}
         {4}{{{\color{numb}4}}}{1}
         {5}{{{\color{numb}5}}}{1}
         {6}{{{\color{numb}6}}}{1}
         {7}{{{\color{numb}7}}}{1}
         {8}{{{\color{numb}8}}}{1}
         {9}{{{\color{numb}9}}}{1}
}
