Hi,
I think TMF has nothing to do with jsonpath.But you can figure out right expression using evaluators on TMF 639 json structure.
Probably using
https://jsonpath.com/Example expression for you would be like below
$.resourceCharacteristic[?(@.name=="premiumValue")]
JSON Data:
{
"id": "444",
"href": "http://server:port/resourceInventoryManagement/logicalResource/444",
"description": "This is a MSISDN resource with the category Premium and with an unlocked administrativeState.",
"category": "Premium",
"value": "0170123456",
"administrativeState": "unlocked",
"operationalState": "disable",
"usageState": "idle",
"resourceStatus": "available",
"resourceSpecification": {
"id": "4",
"href": "
http://server:port/resourceCatalogManagement/resourceSpecification/4","@referredType": "LogicalResourceSpecification"
},
"resourceCharacteristic": [
{
"name": "premiumValue",
"valueType": "string",
"value": "gold"
},
{
"name": "nonPremiumValue",
"valueType": "string",
"value": "silver"
}
],
"relatedParty": [
{
"href": "https://server:port/tmf-api/partyManagement/v4/individual/456",
"id": "456",
"name": "John Doe",
"role": "user",
"@referredType": "Individual"
}
],
"@type": "MSISDN",
"@schemaLocation": "http://server:port/MSISDN.schema.json",
"@baseType": "Resource"
}
Hope this helps.
------------------------------
Hanumantha Marikanti
Saralam Technologies
------------------------------