Getting proper JSON, but not saving