Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7679167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:48:56+00:00 2026-05-31T17:48:56+00:00

I am attempting to use ASP.NET MVC 4 beta together with JSON.NET. I’m using

  • 0

I am attempting to use ASP.NET MVC 4 beta together with JSON.NET. I’m using upshot to talk to web api. However when upshiot does a submit it sends the type information in the change set as (for example "__type":"EquipmentClass:#RXSteps.StepModel.Equipment" instead of "$type":"RXSteps.StepModel.Equipment.EquipmentClass, RXSteps.StepModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" which is what JSON.NET wants.

at the moment I have hacked upshot with
encodedChangeSet= encodedChangeSet.replace(/"__type":"EquipmentClass:#RXSteps.StepModel.Equipment"/g, '"$type":"RXSteps.StepModel.Equipment.EquipmentClass, RXSteps.StepModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"');

However I would like to know how I could do this in a generic way for any type.

many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:48:57+00:00Added an answer on May 31, 2026 at 5:48 pm

    I would create your own UpshotJSONMediaTypeFormatter and do the conversion in there. Henrik has a post on using a JSON.NET media type formatter here. I would just customize the OnReadFromStreamAsync method to do your replace before deserializing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to eliminate the duplication accross two ASP.NET web projects that use exactly
Attempting to use asp.net mvc's Action Result of File. So it would seem that
I'm attempting to use WIF to have my ASP.NET MVC app rely on Windows
I'm attempting to use the new partial page caching available in ASP.NET MVC 3.
I'm attempting to implement a Create action method for an ASP.NET MVC web application.
I'm attempting to use jqGrid in my ASP.Net MVC application and have a requirement
In attempting to use the Performance Tools on an ASP.NET website I'm getting various
We are attempting to integrate an ASP.NET MVC site with our client's SSO system
I'm attempting to iterate over the ListViewDataItems in an ASP.Net ListView, and use the
I'm attempting to use fluent html and the spark view engine in my asp.net

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.