Json: Implement JSON Pointer parsing (RFC 6901)
Adds JSON Pointer parsing (RFC 6901) to GCC's JSON library.
This commit introduces JSON Pointer parsing, as defined by RFC 6901, to GCC’s JSON library. This makes it possible to address specific values inside JSON documents, enabling more precise data access and manipulation. The implementation includes new files (json-pointer-parsing.cc and .h) and updates to existing JSON handling code.
In Details
This commit implements JSON Pointer parsing according to RFC 6901. It adds json-pointer-parsing.cc and json-pointer-parsing.h, providing the core parsing logic. The commit also modifies json.cc and json.h to return borrowed pointers from set_string, set_integer and append_string methods.
For Context
This commit adds JSON Pointer parsing to GCC's JSON handling capabilities. JSON Pointer, defined in RFC 6901, is a string syntax for identifying a specific value within a JSON document. Implementing this feature allows programs to easily access and modify nested data within JSON structures, enhancing data manipulation capabilities.