Added JSON send/read methods to rest framework