Added JSON validation