figured out converting array of Loop objects to JSON