JSON api server

Managed to get through this.  I'm wondering if my time test is being done correctly?  Probably is 'technically' correct since its producing the right test answer, but not the right way.

Thanks.