Check out example codes for "mysql json array contains". It will help you in understanding the concepts better.

Code Example 1

JSON_CONTAINS('[1,2,3,4,5]','7','$') Returns: 0
  JSON_CONTAINS('[1,2,3,4,5]','1','$') Returns: 1

Learn ReactJs, React Native from akashmittal.com