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
2
votes
1 answer

How to Deserialize a type with a Parameterized Constructor using JIL?

I have a simple immutable POCO defined as: public sealed class Person { public Person(string name) { Name = name; TimeStamp = DateTimeOffset.UtcNow; } public DateTimeOffset TimeStamp { get; } public string…
MaYaN
  • 6,683
  • 12
  • 57
  • 109
2
votes
1 answer

How to use Dapper's multi-mapping while mapping one type to another?

My scenario: I have a class called Person that I save to the DB using Dapper. On Person, I have a Dictionary of Values that I serialize to a string and store that as varchar(MAX). public class Person { public string Name {get; set;} public…
scheepersw
  • 23
  • 1
  • 5
2
votes
1 answer

Jil.DeserializationException : Error occurred building a deserializer in redis cache

I'm using Redis Cache using Stack Exchange library. I used cloudStructure library to use Redis Dictionary and Redis List. Problem is when I try to retrieve values and if that model has a null value for one list property it is throwing me below…
Neo
  • 15,491
  • 59
  • 215
  • 405
2
votes
0 answers

Jil custom formatting of List/Array

I am using Jil in my Web API project. I am trying to understand how can I custom serialize the json object when it is array or list such as instead of: {"listKey": ["fasdf", "asdfasdf"]} I will get {"listKey": ["item": {"fsdfdsf",…
Himberjack
  • 5,682
  • 18
  • 71
  • 115
1
vote
2 answers

Check if Dictionary value is an array

I have a dictionary in my code which holds key value pairs from 3rd party API call. I get the API response as a serialize string. So I hold these values in a dictionary like below var res = await APICall(); var bookingTypes =…
user2837480
  • 349
  • 2
  • 18
1
vote
0 answers

How to delete extended_calendar using Autosys jil

I was able to find the JIL syntax/format for the creation of extended_calendars in Autosys. But I couldn't find any syntax to delete any extended calendars. Can anyone please provide a sample example. Thanks in advance.
avkrish
  • 15
  • 3
1
vote
1 answer

error while running python script using AutoSys

I am running a python script using AutoSys but it is giving error. The problem lies in the version of python, Instead of calling python 3.8 auto sys is calling python 2.7 How can I change the path of python in autosys?
1
vote
1 answer

Autosys file watcher job, Trigger on file arrival , file comes monthly

I am a .net C# developer and having limited knowledge in autosys script. We have a monthly file feed(csv).. Comes once in a month .. sometimes twice in a month. My requirement is to run a job which will monitor this file and move to a different…
Rahul Chowdhury
  • 1,138
  • 6
  • 29
  • 52
1
vote
1 answer

Having issue with file appended with date in JIL script

I have a file watcher job, which is expecting to receive daily file with date appended. insert_job: FILE_WATCHER job_type: FW box_name: abc_BOX machine: abc.com owner: dev permission: mx,me date_conditions: 0 job_terminator: 1 …
dildeepak
  • 1,349
  • 2
  • 16
  • 34
1
vote
0 answers

Does Jil have an option to convert empty string into null when Deserialize method is called?

I need to deserialize a JSON using Jil; unfortunately the deserialization fails when it tries to convert an empty string into a double?. Is there any Option to set in order to solve this problem? I went through the official documentation, but I…
Francesco
  • 11
  • 1
  • 3
1
vote
1 answer

Autosys Job: machine name parametrization

I am creating a Autosys Job as follows: /* ----------------- GLB_1045_AMDGC_IntegrationAMDH_DEV ----------------- */ insert_job: GLB_1045_AMDGC_Integration_DEV job_type: CMD command:…
1
vote
2 answers

Autosys Can a job run multiple instance at the same time

I am trying to understand autosys job. Suppose I have Job A that runs every 15 minutes. Suppose for some reason if Job A takes more than 15 minutes, will another instance of it run or it will wait for the job to finish before running another…
jenkins342
  • 19
  • 2
1
vote
1 answer

Not able to use JIL Serializer ExcludeNulls Option

I am not able to use JIL's Exclude Null option. Instead, I get an exception: JIL.DeserializationException: 'Expected digit' Below are code snippets. public Task ReadAsync(InputFormatterContext context) { if (context ==…
Nayan Rudani
  • 1,029
  • 3
  • 12
  • 21
1
vote
1 answer

Missing parameterless constructor when casting Jil dynamic deserialized object array

In our application we have a problem using a dynamic object, that is the result of JSON deserialization with Jil. The following code is just to show the problem. void Main() { var modelJson = "{\"Id\":1,\"Options\":[{\"Id\":2,\"Name\":\"Option…
George
  • 315
  • 3
  • 15
1
vote
0 answers

Replacing WebAPI JSON.NET(Newtonsoft.Json) with Jil as Default Serializer

I recently read up on Jil, claiming to be the faster Serializer than JSON.Net. I would like some help on creating a Customer MediaTypeFormatter for Jil. Take note: I'm using .NET framework 4.7.1 Any advice for codes to make Jil able to have such…