Skip to Content
Jan 08, 2019 at 09:41 AM

How to split JSON based on Key using xsjs?


Hi, below is the JSON object I have {"Name":"John", "Name-Second":"Martin"}

I need some 2 JSON objects based on the Key (using string values) i.e

I want to get Name-Second as a different JSON object. How to do this?

JSON 1: {"Name":"John"}

JSON 2: {"Name-Second":"Martin"}