replace usage of JObject with ExpandoObject