\href{https://github.com/zkat/json-parse-better-errors}{\texttt{ {\ttfamily json-\/parse-\/better-\/errors}}} is a Node.\+js library for getting nicer errors out of {\ttfamily JSON.\+parse()}, including context and position of the parse errors.\hypertarget{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14273}{}\doxysection{Install}\label{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14273}
{\ttfamily \$ npm install -\/-\/save json-\/parse-\/better-\/errors}\hypertarget{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14274}{}\doxysection{Table of Contents}\label{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14274}

\begin{DoxyItemize}
\item \href{\#example}{\texttt{ Example}}
\item \href{\#features}{\texttt{ Features}}
\item \href{\#contributing}{\texttt{ Contributing}}
\item \href{\#api}{\texttt{ API}}
\begin{DoxyItemize}
\item \href{\#parse}{\texttt{ {\ttfamily parse}}}
\end{DoxyItemize}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14275}{}\doxysubsection{Example}\label{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14275}

\begin{DoxyCode}{0}
\DoxyCodeLine{const parseJson = require('json-\/parse-\/better-\/errors')}
\DoxyCodeLine{}
\DoxyCodeLine{parseJson('"{}foo"{}')}
\DoxyCodeLine{parseJson('garbage') // more useful error message }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14276}{}\doxysubsection{Features}\label{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14276}

\begin{DoxyItemize}
\item Like JSON.\+parse, but the errors are better.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14277}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14277}
The npm team enthusiastically welcomes contributions and project participation! There\textquotesingle{}s a bunch of things you can do if you want to contribute! The Contributor Guide has all the information you need for everything from reporting bugs to contributing entire new features. Please don\textquotesingle{}t hesitate to jump in if you\textquotesingle{}d like to, or even ask us questions if something isn\textquotesingle{}t clear.

All participants and maintainers in this project are expected to follow Code of Conduct, and just generally be excellent to each other.

Please refer to the \mbox{\hyperlink{md_sfcode_node_modules_json_parse_better_errors_CHANGELOG}{Changelog}} for project history details, too.

Happy hacking!\hypertarget{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14278}{}\doxysubsection{API}\label{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14278}
\hypertarget{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14279}{}\doxysubsubsection{$<$a name=\char`\"{}parse\char`\"{}$>$$<$/a$>$ $<$tt$>$$>$ parse(txt, ?reviver, ?context=20)$<$/tt$>$}\label{md_sfcode_node_modules_json_parse_better_errors_README_autotoc_md14279}
Works just like {\ttfamily JSON.\+parse}, but will include a bit more information when an error happens. 