abitlity to upload and receive pictures through JSON rest api