Json $ref

83 views
Skip to first unread message

ashle...@gmail.com

unread,
Jun 18, 2013, 12:43:52 PM6/18/13
to knock...@googlegroups.com
Hi everyone, 

really enjoying using knockout but have an issue atm which i cant resolve so would be great to get some help.

So I have a Web API MVC project and returning objects from an EF with json.
The problem is when I have json that contains $ref my knockout mapping doesnt work.
Ideally i just want to stop json from referencing and instead just return the whole object.

I have tried  json.SerializerSettings.PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.None
but this didnt stop it from happening :(

hope someone can help
cheers :)

Ryan Rahlf

unread,
Jun 18, 2013, 2:34:50 PM6/18/13
to knock...@googlegroups.com
Hi Ash,

This is more properly an Entity Framework serialization question, so you may have better luck in an Entity Framework forum or StackOverflow.

Good Luck!

Ryan Rahlf
_________________
@Ryanthem


--
You received this message because you are subscribed to the Google Groups "KnockoutJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knockoutjs+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages