Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json.SelectToken("Manufacturers.Products.Price"); #1637

Closed
ntoskrnl-exe opened this issue Jun 14, 2019 · 2 comments
Closed

json.SelectToken("Manufacturers.Products.Price"); #1637

ntoskrnl-exe opened this issue Jun 14, 2019 · 2 comments
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation

Comments

@ntoskrnl-exe
Copy link

Using the following pseudo code,

json.SelectToken("Manufacturers.Products.Price");

Is there a way to do to gain the value of the price ?

json, is the structured data and SelectToken is just an example method.

@nickaein
Copy link
Contributor

These sections of README could be helpful:

You can reference the JSON object you are looking for either step by step e.g.

auto price = j["Manufacturers"]["Products"]["Price"].get<int>();

or by using JSON Pointers, e.g.

auto price = j["Manufacturers/Products/Price"_json_pointer].get<int>();

@nlohmann
Copy link
Owner

@xOrMalware Do you need further assistance?

@nlohmann nlohmann added the solution: proposed fix a fix for the issue has been proposed and waits for confirmation label Jun 29, 2019
@nlohmann nlohmann closed this as completed Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

No branches or pull requests

3 participants