Questions tagged [jil]

JIL - A fast JSON (de)serializer, built on Sigil with a number of somewhat crazy optimization tricks.

JIL

A fast JSON (de)serializer, built on Sigil with a number of somewhat crazy optimization tricks.

64 questions
5
votes
1 answer

JIL .NET JSON Deserialization exception

I run simple deserialization into own type Event with : JSON.Deserialize(text); with exception: An exception of type 'Jil.DeserializationException' occurred in Jil.dll but was not handled in user code. Additional information: Expected…
frno
  • 1,064
  • 11
  • 24
4
votes
1 answer

Difference between ON ICE and ON HOLD jobs in Autosys

What is the difference of putting job on hold and putting it on ice?
Mike
  • 20,010
  • 25
  • 97
  • 140
4
votes
1 answer

(De)Serialize DynamicObject with Jil?

I have a problem to (de)serialize DynamicObject with other json library that is not Newtownsoft.Json. (Jil, NetJSON, ServiceStack.Text...) This is my expandable object class: public class ExpandableObject : DynamicObject { private readonly…
Refactor-Man
  • 443
  • 8
  • 17
3
votes
0 answers

In .Net Core, Use Two Different Versions of a NuGet Simultaneously

Here is my solution layout: .Net Core Web API Service Solution | +-- Project A | | Nuget Package Dependencies | +-- Jil v2.15.4 | +-- Project B | Nuget Package Dependencies +-- Jil v2.17.0 Version 2.16.0 of…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
3
votes
0 answers

XDocument object serialization to JSON issue using Jil in c# (stackoverflow exception)

I have an XDocument object that comes from business layer, it includes a document property which repeats itself infinitely (God knows why!) with the same values in every repeat and it becomes problematic when I want to serialize this object to JSON…
Code_Worm
  • 4,069
  • 2
  • 30
  • 35
3
votes
1 answer

Jil serializer ignore null properties

Is there an attribute to prevent Jil from serializing properties that are null ? In Newtonsoft it is : [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
Guy Assaf
  • 888
  • 9
  • 24
3
votes
1 answer

Has anyone compared or have any benchmarks of Bond vs JIL for JSON parsing?

BOND is a cross-platform framework for working with schematized data. It supports cross-language de/serialization and powerful generic mechanisms for efficiently manipulating data. Bond is broadly used at Microsoft in high scale services. it's…
penderi
  • 8,673
  • 5
  • 45
  • 62
2
votes
0 answers

API response Include milliseconds when serializing DateTime even if component is zero

DateTimeStamp : 2022-04-29 15:19:41.350 after serialization 2022-04-29T22:19:41.35Z instead of 2022-04-29T22:19:41.350Z I have fixed this using below code : public static void ServiceJsonSettings(HttpConfiguration config, IServiceMetadata…
Shani Bhati
  • 171
  • 1
  • 13
2
votes
3 answers

JilOutputFormatter: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead

I have this formatter in my .NET Core 3.1 project (which I recently upgraded from 2.1): public class JilOutputFormatter : TextOutputFormatter { public JilOutputFormatter() => JilFormatterConfig.AddSupportedHeaders(SupportedMediaTypes,…
amiry jd
  • 27,021
  • 30
  • 116
  • 215
2
votes
1 answer

How do I get Non-Public members from a dynamic object created by Jil.JSON.DeserializeDynamic?

I am a newbie in Jil.JSON. I am using 'JSON.DeserializeDynamic' because the 'JSON' string always varies for different customer's requirements. In my code, I am using 'foreach'. 'keyValue' is a dynamic with 'Key' and 'Value' properties. I am trying…
grnmeado7
  • 31
  • 4
2
votes
0 answers

Jil.DeserializationException: 'Expected digit'

I am trying to implement the Jil serializer in WebAPI(C#). While deserializing throws the error like "Jil.DeserializationException: 'Expected digit'". I have attached the code samples. WebApiConfig.cs config.Formatters.Clear(); var…
Satheeshkumar
  • 23
  • 1
  • 4
2
votes
1 answer

JIL json serializer does not serialize properties from derived class

JIL json serializer does not serialize properties from derived class Below are the code snippet: public async Task WriteAsync(OutputFormatterWriteContext context) { if (context == null) { throw new…
Nayan Rudani
  • 1,029
  • 3
  • 12
  • 21
2
votes
3 answers

Autosys - Get Jobs list on a specific computer

I try to get the list of all the jobs running on a specific client. When running autorep -J ALL -q I get the following output: /* ----------------- ### ----------------- */ insert_job: ### job_type: CMD box_name: ### command: ### …
Will
  • 1,792
  • 2
  • 23
  • 44
2
votes
3 answers

Serializing arrays result wrong JSON

I recently realized that serializing arrays with both Json.NET and Jil libraries, results a wrong JSON object! at least as far as https://jsonlint.com says. For example var serializer = // Json.NET_Serializer or Jil_Serializer; var json =…
amiry jd
  • 27,021
  • 30
  • 116
  • 215
2
votes
0 answers

JIL Deserialization Exception

I am having some issues deserializing a datetime property with JIL. The JSON has been originally serializedby JIL, stored in a database, and now read back out. The deserializer is throwing an exception of: Expected: ,, } Here is the json in…
GreatSamps
  • 589
  • 1
  • 5
  • 16
1
2 3 4 5