Forum Discussion

akarsh's avatar
akarsh
New Contributor III
2 years ago
Solved

Convert the Data to nested Json Document

My Input looks like this.  [ { "error": "", "stacktrace": "", "reason": "", "resolution": "", "status_code": "", "statusCode": 404, "snap_details": { "label": "", "instance_id": "", "clas...
  • tlikarish's avatar
    tlikarish
    4 years ago

    Ah, sorry, misunderstood the requirement.

    In that case, you could do something like this:

    $email.split(',')[0] → primary
    $email.split(',').slice(1).join(',') → secondary

    Here’s an example pipeline to play around with if it’s helpful.

    split-example_2022_04_06.slp (4.9 KB)