Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

//1st way public string GetSomeData() { List<SomeObject> largeCollection = GetLargeDataCollection(); JavaScriptSerializer serializer = new JavaScriptSerializer(); json = ...
Shad's user avatar
  • 1,237
0 votes
0 answers
26 views

I have this piece of code to extract the values form JSON. It works when parsing strings, but it has issues with the numbers. For example I always receive value (Approved or 0.1) when getting the &...
sniper2100's user avatar
0 votes
1 answer
438 views

When attempting to recreate an RCE attack using the unsafe configuration of JavaScriptSerializer with the SimpleTypeResolver I am not seeing any actual effect of my supposed malicious payload. I've ...
Max Strandberg's user avatar
0 votes
1 answer
74 views

Consider the following code (.NET Framework 4.8 c#) using System; using System.Collections.Generic; using System.Web.Script.Serialization; namespace SerialisationTest { class Program { ...
Symo's user avatar
  • 526
0 votes
1 answer
849 views

I have a data table like below Subject Question Qtype English xxxxxxx Subjective English yyyyyyy Subjective English zzzzzzz Objective English sasasas Objective English cvcvcvv Subjective Question ...
DTechy's user avatar
  • 5
1 vote
0 answers
377 views

I have an SSIS C# script component that hits an API, pulls down the response, and I'm working on deserializing it into a proper C# object. Here's the basic JSON that the API returns: { "id&...
Joe Ireland's user avatar
0 votes
1 answer
864 views

I have been trying to deserialize json string in vb.net. I am able successfully get a response using Using myResp = TryCast(myReq.GetResponse(), System.Net.HttpWebResponse) ...
Nathan Naidoo's user avatar
0 votes
0 answers
48 views

The problem boils down to as below: enter image description here PS: The datatable structure is defined as above in the image. I am using C# core to solve the problem of removing the '[' and ']' from ...
user1547637's user avatar
0 votes
1 answer
58 views

My program accesses data through a Web API and gets data in JSON format. Response is for example: { "response":{ "stationId":"24026900", "prices"...
fox's user avatar
  • 45
0 votes
2 answers
1k views

Im trying to parse a http web response into an array or something so i can work with the information. This is the json response i get (+ a lot more, but i just censored the format): { "meta&...
Asphaug's user avatar
  • 21
0 votes
0 answers
633 views

I am getting the following error when serializing data in asp.net 2.0. Large data is being sent from the database but it is less than the max limit because it works in .Net 4.5 when setting the ...
user1263981's user avatar
  • 3,157
-1 votes
1 answer
155 views

I am working on deserialize json string using JavaScriptSerializer in C#, and trying to parse the json string and map it to the appropriate columns in the sql server table for inserting data. I have ...
paone's user avatar
  • 937
0 votes
1 answer
62 views

I have a following class. class Timesheet { public int ID { get; set; } public List<Employee> Approvers { get; set; } public Employee Resource { get; set; } ...
Maryam's user avatar
  • 555
1 vote
1 answer
873 views

I want to create dynamic expressions for my web services to allow client applications to pass dynamic queries to filter the data as they require. To this end I'm trying to serialize / deserialize an ...
DomBurf's user avatar
  • 2,532
0 votes
1 answer
433 views

I am using javascriptserializer to deserialize json data. I am stuck on how to parse this data and assign the value to a variable. json: { "data1": { "EntityList": "Attribute", "KeyName": "...
ITHelpGuy's user avatar
  • 1,047
0 votes
2 answers
823 views

Could anyone give me a step to solve this error in getting a output. New to coding. Step 1: Using Json/Javascript calling a method which is in .cs file(c#) var markers = JSON.parse('<%=...
jacksantho's user avatar
0 votes
2 answers
685 views

I have serialized a List<Tuple<long, string, int>> obj using JavaScriptSerializer. JavaScriptSerializer js = new JavaScriptSerializer(); return js.Serialize(dataToSerialize as IEnumerable)...
Albanian Al's user avatar
0 votes
1 answer
224 views

Dim result = New JavaScriptSerializer().Deserialize(Of SearchResult)(Request.Cookies.Get("user").Value) An exception of type 'System.MissingMethodException' occurred in System.Web.Extensions....
Jeffrey's user avatar
  • 77
1 vote
1 answer
216 views

I am trying to use the JavaScriptSerializer to pull some information from a website API. However, I am new to this in vb.net and can't seem to get the textbox to load. I think it has to do with the ...
Cheddar's user avatar
  • 530
1 vote
1 answer
5k views

I have a string array that I want to deserialize. Essentially, it is just a list of objects. Note that the attributes have spaces in the names: [ { \"Event Name\": \"Hurricane Irma PR\", ...
gwydion93's user avatar
  • 1,933
0 votes
1 answer
611 views

New to C# and JSON but basically I have to use a C# script component in SSIS to extract data from a web service. I was able to do it initially with a different JSON format but this one includes an ...
adrianvas12's user avatar
0 votes
1 answer
135 views

If I use JavaScriptSerializer with named tuples I get following: var serialized = new JavaScriptSerializer().Serialize((Foo: "Fooo", Bar: "Bar")); serialized is: {"Item1":"F","Item2":"B"} Any ...
watbywbarif's user avatar
  • 7,117
0 votes
2 answers
65 views

SerializeDateTime method returns datetime in milliseconds. I want him to turn to microseconds. SerializeDateTime method as follows: private static void SerializeDateTime(DateTime datetime, ...
Havokh's user avatar
  • 1
0 votes
1 answer
194 views

I am facing a pretty harsh issue with my ASP.NET web app, I am using visual studio community 2017, target framework .NET core 2.2. I have to parse a JSON string and found that the System.Web.Script....
J. Valjean's user avatar
1 vote
1 answer
242 views

I'm trying to serialize an object without some fields. I've tried to define interface without those fields, and then cast and serialize it but the JavaScriptSerializer includes those fields as well. ...
Guy Dafny's user avatar
  • 1,849

1
2 3 4 5
9