0

jsonfile1

[
    [
        "i-pfasdqaertcbidlkl",
        "Some_Task",
        "t2.small",
        "running",
        "4.3.2.1",
        "Malaysia_db",
        "2018-04-10T13:56:50.000Z",
        "db",
        null,
        "1.2.3.4",
        null,
        null
    ]
]

jsonfile2

[
    "i-pfasdqaertcbidlkl",
    false
]

I want to join both files by i-pfasdqaertcbidlkl

Output Needed

[
    [
        "i-pfasdqaertcbidlkl",
        "Some_Task",
        "t2.small",
        "running",
        "4.3.2.1",
        "Malaysia_db",
        "2018-04-10T13:56:50.000Z",
        "db",
        null,
        "1.2.3.4",
        null,
        null,
        false
    ]
]
  • What should the result look like for the given input? – Kusalananda Aug 7 '18 at 6:27
  • @Kusalananda updated – GypsyCosmonaut Aug 7 '18 at 9:16
  • Could there be other subarrays in the first file whose first element is not i-pfasdqaertcbidlkl? May there be several ones that are the same? – Kusalananda Aug 7 '18 at 9:49
  • @Kusalananda No, sorry for responding too late to your comments – GypsyCosmonaut Aug 7 '18 at 14:04
  • @Kusalananda sorry, I just noticed, I the heading I gave to my question was wrong, I just need a join. – GypsyCosmonaut Aug 7 '18 at 23:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.