Consolix
Loading...
Searching...
No Matches
json_utils.hpp File Reference

Utilities for working with JSON strings, including removing comments. More...

#include <algorithm>
#include <cstddef>
#include <string>

Go to the source code of this file.

Namespaces

namespace  consolix
 < Utility modules and helpers.

Macros

#define _CONSOLIX_JSON_UTILS_HPP_INCLUDED

Functions

bool consolix::check_escaped (const std::string &json_string, std::size_t quote_position)
 Checks if a character in a JSON string is escaped.
std::string consolix::strip_json_comments (const std::string &json_string, bool with_whitespace=false, bool preserve_newlines=true)
 Removes comments from a JSON string.

Detailed Description

Utilities for working with JSON strings, including removing comments.

Definition in file json_utils.hpp.

Macro Definition Documentation

◆ _CONSOLIX_JSON_UTILS_HPP_INCLUDED

#define _CONSOLIX_JSON_UTILS_HPP_INCLUDED

Definition at line 3 of file json_utils.hpp.