Valid events in json format

i have huge data in json format,in that json events have different schema,another json events have different schema then i need to identify valid json based on different schema root nodes .
json will be identified as a valid when root nodes are matching

please share your inputs which machine learning algorithm should apply

© Copyright 2013-2020 Analytics Vidhya