I am using package listings for JSON data. I am following this example How to improve listings display of JSON files from this stackexchange answer. It generates the following output:
I added caption to the listing using:
\begin{lstlisting}[language=json,firstnumber=1,caption={My Caption},captionpos=b]
I want to make the listing look like this:
- The line numbers are in grey color and smaller font
- The
keysare in bold font and black color, the quotes of the keys are not bold - The
valuescolors are based on their data type: string→green (with quotes green too), number→red, boolean→cyan, float→blue etc.
I can change the color of brackets, colon, and comma, and the font is fine too, but i am struggling with the keys and values formatting and line numbers color & size. Any help will be highly appreciated.
