Changed Json function to JsonMap.
Added JsonArray function to test client.
HttpResponse will now convert maps and arrays to json and update the mimetype.