Added a very basic REST json API