You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to create one of your DataModel objects from a JSON string?
I wrote a webhook server for Contentful. Each webhook request sends an entire object as its request body in JSON. I'm looking for a way to get an object representation of this.
Using that JSON string, could I create one of your DataModel objects?
The text was updated successfully, but these errors were encountered:
You should be able to do this. Contentful.NET uses JSON.NET to deserialize the response from the REST API to DataModel objects, so if you use the same library it should work fine.
Do I do it manually, or can I just pass the string somewhere? I really don't want to re-implement the string-to-object logic as I don't think that would do either library any favors.
The method used by Contentful.NET is internal so you won't be able to call it directly (it requires a HttpResponseResult anyway, so probably won't be of much use to you).
Is it possible to create one of your DataModel objects from a JSON string?
I wrote a webhook server for Contentful. Each webhook request sends an entire object as its request body in JSON. I'm looking for a way to get an object representation of this.
Using that JSON string, could I create one of your DataModel objects?
The text was updated successfully, but these errors were encountered: