Related Links Razor Macro Umbraco 7

Does anyone have any related links razor working with a macro for Umbraco 7?

I unfortunately need to use the macro in the RTE and pass a parameter so can't use MVC, this just keeps throwing erros:

@inherits umbraco.MacroEngines.DynamicNodeContext
@using Newtonsoft.Json.Linq


@{
var startNodeID = Parameter.ChooseButtonGroup;
}

@if (startNodeID != null)
{
@* Get the start node as a dynamic node *@
<h1>@startNodeID</h1>
var startNode = Library.NodeById(startNodeID);

foreach(var relatedLink in startNode.GetPropertyValue<JArray>("relatedLinks")) {

<h1>@(relatedLink.Value<string>("title"))</h1>

}
}


The error I'm getting is "'char' does not contain a definition for 'Value'"

-Amir


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/54450-related-links-razor-macro-umbraco-7