\documentclass{article} \usepackage{listings} \usepackage{xcolor} \lstdefinelanguage{json}{basicstyle=\normalfont\ttfamily, numbers=left, numberstyle=\scriptsize, breaklines=true, frame=lines, backgroundcolor=\color{gray!10}, showstringspaces=false, string=[db]{"}, stringstyle=\color{green!50!black}, morestring=[s][\color{black}]{\ \ "}{":}, keywordstyle=\color{blue}, keywords={true,false,null}, literate= *{0}{{{\color{red}0}}}{1} {1}{{{\color{red}1}}}{1} {2}{{{\color{red}2}}}{1} {3}{{{\color{red}3}}}{1} {4}{{{\color{red}4}}}{1} {5}{{{\color{red}5}}}{1} {6}{{{\color{red}6}}}{1} {7}{{{\color{red}7}}}{1} {8}{{{\color{red}8}}}{1} {9}{{{\color{red}9}}}{1} {.}{{{\color{red}.}}}{1} {:}{{{\color{gray}{:}}}}{1} {,}{{{\color{gray}{,}}}}{1} {\{}{{{\color{gray}{\{}}}}{1} {\}}{{{\color{gray}{\}}}}}{1} {[}{{{\color{gray}{[}}}}{1} {]}{{{\color{gray}{]}}}}{1},} \begin{document} \begin{lstlisting}[language=json] { name: wjson description: "Implements a JavaScript JSON weak-syntax reader and writer" homepage: "https://line.gitlabpages.inria.fr/aide-group/wjson" version: 1.0.3 license: CECILL-C author: "Thierry Vieville " repository: { type: git url: "https://gitlab.inria.fr/line/aide-group/wjson" project_ID: 26382 } scripts: { install: "make -s --no-print-directory -C src install" build: "make -s --no-print-directory -C src build" test: "make -s --no-print-directory -C src test" clean: "make -s --no-print-directory -C src clean" } dependencies: { aidesys: "git+https://gitlab.inria.fr/line/aide-group/aidesys.git" rdf: latest } devDependencies: { aidebuild: "git+https://gitlab.inria.fr/line/aide-group/aidebuild.git" } softwareheritage: true npmjs: true swig: true } \end{lstlisting} \end{document}