Added JSON encoding to get/setContent of LocalFile