Added JSON Validation Method

Added a method to validate json encoded arrays