JObject SerializeAsJson(HalJsonConfiguration config, object obj) { var data = Serialize(config, obj); return JObject.Parse (data); }