Inline collection to JSON format