Skip to content

JSON Pointer (was RFC6901) #480

@jano42

Description

@jano42

I'm wondering if accessing sub element is a feature that you could implement ?

{ "foo1": "bar", "foo2": "bar2", "foo3": { "sfoo1" : 1, "sfoo2" : "42" } }

The idea is to get a direct access to a sub-element like this:

boost::json::object data; //parse data auto &magicNumber = data["foo3.sfoo2"];

The path separator would be configurable ("." or "/",...)

This is RFC6901, as it's done by rapidjson for example

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions