rspec json index and create