Added arraySerializer interface and JsonRestController to reduce boilerplate