Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

JOLT: How to create a field with value from indexed fieldis indexed field based on the name of another

JOLT: How to create a field with value from indexed fieldis indexed field based on the name of another

New Contributor

Not sure if this is possible in jolt. We are trying to extract a value whose field name is indexed by another field. Please take a look at the description below.

{
  "_src" : {
    "SomeName" : 123,
    "FName" : "SomeName"
  }
}

to

{
  "val": "123",
  "_src" : {
    "SomeName" : 123,
    "FName" : "SomeName"
  }
}

Any ideas on how approach this, or if this is even possible in JOLT?

Thanks

Don't have an account?
Coming from Hortonworks? Activate your account here