public JObject CreateJObject(IPublishedContent node, JsonSerializer serializer) { var obj = new JObject(); if (!hasAccess(node)) return obj; var serializableNode = new SerializableNode(node,traverseChildren); return JObject.FromObject(serializableNode); }
public JObject CreateJObject(IPublishedContent node, JsonSerializer serializer) { var obj = new JObject(); if (!hasAccess(node)) { return(obj); } var serializableNode = new SerializableNode(node, traverseChildren); return(JObject.FromObject(serializableNode)); }