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

How to use nested/anchor if there are attr-subAttr-subAttr in JSON file. #17

Open
Akshay-a-j opened this issue Jul 19, 2024 · 0 comments

Comments

@Akshay-a-j
Copy link

Akshay-a-j commented Jul 19, 2024

I am finding it difficult to use nested/anchor methods as the JSON file has multiple sub-attrs. Please find the contents of the JSON file below.

"{
"metadata" : {
"economicOperatorId" : "BPNL0123456789ZZ",
"lastModification" : "2000-01-01",
"predecessor" : "urn:uuid:00000000-0000-0000-0000-000000000111",
"issueDate" : "2000-01-01",
"version" : "1.0.0",
"passportIdentifier" : "urn:uuid:550e8400-e29b-41d4-a716-446655440000",
"status" : "draft",
"expirationDate" : "2030-01-01"
},
"operation" : {
"intoServiceDate" : "7345-31-31",
"manufacturer" : {
"facility" : [ {
"facility" : "BPNA1234567890AA"
} ],
"manufacturingDate" : "2000-01-31",
"manufacturer" : "BPNL6XI3KZ55MzYB"
}
},
"sustainability" : {
"carbonFootprint" : [ {
"lifecycle" : "main product production",
"rulebook" : [ {
"contentType" : "URL",
"header" : "Example Document XYZ",
"content" : "https://dummy.link"
} ],
"unit" : "kg CO2 / kWh",
"performanceClass" : "A",
"manufacturingPlant" : [ {
"facility" : "BPNA1234567890AA"
} ],
"type" : "Climate Change Total",
"value" : 12.678,
"declaration" : [ {
"contentType" : "URL",
"header" : "Example Document XYZ",
"content" : "https://dummy.link"
} ]
} ],
"status" : "original"
}
}"

@Akshay-a-j Akshay-a-j changed the title How to using nested/anchor if there are attr-subAttr-subAttr in JSON file. How to use nested/anchor if there are attr-subAttr-subAttr in JSON file. Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant