Guest User

Untitled

a guest
May 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. JObject issue_model = JObject.FromObject(new
  2. {
  3. labels = new[] { "import", "automation"}
  4. }
  5.  
  6. string request_json = JsonConvert.SerializeObject(issue_model,
  7. Newtonsoft.Json.Formatting.Indented,
  8. new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
  9.  
  10. list<string> lp_list = new list<string>();
  11. //lp_list contains a list of string values
  12. string[] lp_labels = lp_list.ToArray();
  13. JObject issue_model = JObject.FromObject(new
  14. {
  15. labels = jira_labels
  16. }
  17.  
  18. "labels": [
  19. [
  20. null,
  21. null
  22. ]
  23. ]
Add Comment
Please, Sign In to add comment