mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
c066b5421b
* Add support for JSONPath with '$' prefix and integrate into dom::at_path (#2266) - Updated `json_path_to_pointer_conversion` to support JSONPath starting with the '$' prefix, while maintaining compatibility with the existing implementation. - Moved `json_path_to_pointer_conversion` to a separate header file for better modularity and to support JSONPath queries in `dom` mode. - Implemented `at_path` functionality in `dom` mode to enable querying JSON using JSONPath. - Added unit tests to validate the new JSONPath support in `dom` mode and ensure compatibility with both standard and existing JSONPath formats. * two minor fixes * more tests and documentation * damn compiler warnings * more documentation fixes --------- Co-authored-by: Zhengguo Yang <yangzhgg@gmail.com>
18 lines
729 B
C
18 lines
729 B
C
#ifdef SIMDJSON_CONDITIONAL_INCLUDE
|
|
#error simdjson/generic/ondemand/dependencies.h must be included before defining SIMDJSON_CONDITIONAL_INCLUDE!
|
|
#endif
|
|
|
|
#ifndef SIMDJSON_GENERIC_ONDEMAND_DEPENDENCIES_H
|
|
#define SIMDJSON_GENERIC_ONDEMAND_DEPENDENCIES_H
|
|
|
|
// Internal headers needed for ondemand generics.
|
|
// All includes not under simdjson/generic/ondemand must be here!
|
|
// Otherwise, amalgamation will fail.
|
|
#include "simdjson/dom/base.h" // for MINIMAL_DOCUMENT_CAPACITY
|
|
#include "simdjson/implementation.h"
|
|
#include "simdjson/padded_string.h"
|
|
#include "simdjson/padded_string_view.h"
|
|
#include "simdjson/internal/dom_parser_implementation.h"
|
|
#include "simdjson/jsonpathutil.h"
|
|
|
|
#endif // SIMDJSON_GENERIC_ONDEMAND_DEPENDENCIES_H
|