Added array encapsulation to JSON Resource Handler