{"action":"created","issue":{"url":"https://api.github.com/repos/jayway/JsonPath/issues/294","repository_url":"https://api.github.com/repos/jayway/JsonPath","labels_url":"https://api.github.com/repos/jayway/JsonPath/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/jayway/JsonPath/issues/294/comments","events_url":"https://api.github.com/repos/jayway/JsonPath/issues/294/events","html_url":"https://github.com/jayway/JsonPath/issues/294","id":198537486,"number":294,"title":"ValueNode.toValueNode() is not converting to JsonNode","user":{"login":"kiranpatel11","id":8432431,"avatar_url":"https://avatars2.githubusercontent.com/u/8432431?v=3","gravatar_id":"","url":"https://api.github.com/users/kiranpatel11","html_url":"https://github.com/kiranpatel11","followers_url":"https://api.github.com/users/kiranpatel11/followers","following_url":"https://api.github.com/users/kiranpatel11/following{/other_user}","gists_url":"https://api.github.com/users/kiranpatel11/gists{/gist_id}","starred_url":"https://api.github.com/users/kiranpatel11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiranpatel11/subscriptions","organizations_url":"https://api.github.com/users/kiranpatel11/orgs","repos_url":"https://api.github.com/users/kiranpatel11/repos","events_url":"https://api.github.com/users/kiranpatel11/events{/privacy}","received_events_url":"https://api.github.com/users/kiranpatel11/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-03T18:28:21Z","updated_at":"2017-03-23T17:37:55Z","closed_at":"2017-03-23T17:37:55Z","body":"isJson() is not returning true even if argument is valid json string.\r\n\r\n```\r\nprivate static boolean isJson(Object o) {\r\n  if ((o == null) || (!(o instanceof String))) {\r\n    return false;\r\n  }\r\n  String str = o.toString().trim();\r\n  if (str.length() <= 1) {\r\n    return false;\r\n  }\r\n  char c0 = str.charAt(0);\r\n  char c1 = str.charAt(str.length() - 1);\r\n  if (((c0 == '[') && (c1 == ']')) || ((c0 == '{') && (c1 == '}'))) {\r\n    try {\r\n      Configuration.defaultConfiguration().jsonProvider().parse(str);\r\n      return false;   /// THIS SHOULD RETURN TRUE\r\n    } catch (Exception e) {\r\n      return false;\r\n    }\r\n  }\r\n  return false;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jayway/JsonPath/issues/comments/288801003","html_url":"https://github.com/jayway/JsonPath/issues/294#issuecomment-288801003","issue_url":"https://api.github.com/repos/jayway/JsonPath/issues/294","id":288801003,"user":{"login":"kallestenflo","id":447970,"avatar_url":"https://avatars0.githubusercontent.com/u/447970?v=3","gravatar_id":"","url":"https://api.github.com/users/kallestenflo","html_url":"https://github.com/kallestenflo","followers_url":"https://api.github.com/users/kallestenflo/followers","following_url":"https://api.github.com/users/kallestenflo/following{/other_user}","gists_url":"https://api.github.com/users/kallestenflo/gists{/gist_id}","starred_url":"https://api.github.com/users/kallestenflo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kallestenflo/subscriptions","organizations_url":"https://api.github.com/users/kallestenflo/orgs","repos_url":"https://api.github.com/users/kallestenflo/repos","events_url":"https://api.github.com/users/kallestenflo/events{/privacy}","received_events_url":"https://api.github.com/users/kallestenflo/received_events","type":"User","site_admin":false},"created_at":"2017-03-23T17:37:55Z","updated_at":"2017-03-23T17:37:55Z","body":"Fixed by #330 "}}
{"actor":{"display_login":"kallestenflo"}}