Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
so I m trying to extract JSON data submitted via API calls & it is working fine,
what I want to do it little bit more flexible & parse data even field names are little different to up-to certain extent,
Such as
and I know field names are case sensitive here that means even if client pass data as 'name' or 'NAME' instead of 'Name' field name, data doesn't get mapped.
Basically Is there a way to map multiple field names to one field or specify alternate field names in JSON mapping?
Here is the current field mapping,
Hi,
Since the component will work on schema based approach, you will not be able to chnage field names on the fly. At the same time, you can try to replace the matching values for field names before sending the data for parsing.
For this case, you will have to do a search and replace for the values using regular expressions (Hints:- refer java regular expressions in java forums) for the entire input JSON string.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved
Thanks Nikhil, I am referring to this (highlighted below), if we can use this by by means & mention field alternate field names
ref - http://umashanthan.blogspot.com/2015/11/json-path-expression-for.html