@vamcits
You can use EvaluateJsonPath processor to extract the 0 from the json you shared
You can name the custom property added above to whatever you like (I just used C0).
This will result in a "C0" attribute being generated on the FlowFile with a value of "[0]".
If you don't wan the square brackets around the number, you can remove them using an updateAttribute processor as follows:
Then you can perform your routing with the RouteOnAttribute processor.
Hope this helps,
Matt