Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    ShadowFiend
    @ZackNicola
    good luck good man
    Dimanit
    @dvazhenind_twitter
    Hi Dude
    i am chineese
    and i try to use this LitJson
    Okay, sorry. Where can I downloadd the dll file?
    Mattias Karlsson
    @devlead
    It's available on nuget
    ShadowFiend
    @ZackNicola
    why so many chinese here?
    and why ask same question?
    are you just copy my text?
    ERTUĞRUL GAZİ AKCAN
    @hellboysclub_twitter
    how can i download litjason.dll data?
    Mattias Karlsson
    @devlead
    @hellboysclub_twitter It's available on nuget
    https://www.nuget.org/packages/LitJson/
    sattwikp
    @spati2
    does litjson have a usecase for NullValueHandling
    ShadowFiend
    @ZackNicola
    Hiii, bro, are you there?
    there is an problem when we use litJson
    we just find litJson don't have float Type Value
    only double
    Mattias Karlsson
    @devlead
    @spati2 yes?
    @ZackNicola possible, would you mind raising an issue?
    ShadowFiend
    @ZackNicola
    @devlead you can do a test: create an object include float value, make this object to jsonObject maybe you need base some class ?
    sattwikp
    @spati2
    So my usecase is to omit class properties with null values. Currently I am doing a regex replace to handle that. I was wondering if there is something simpler that I could do
    Mattias Karlsson
    @devlead
    @spati2 if not already possible that sounds like a reasonable addition, please raise an issue
    John
    @JVimes
    Is there a way to have pretty printing, but with a particular array written on a single line?
    "Items" : ["1", "2",  "4"]
    Mattias Karlsson
    @devlead
    No, not atm.
    John
    @JVimes
    Thank you. Probably not a super high value feature.
    John
    @JVimes
    @devlead If I try to implement it, what do you think of this? The user places [CustomExporter(nameof(FooCustomExporter))] on a class member. Now, WriteValue()uses that custom exporter on the member (in my use case above, the exporter writes the array without newlines).
    vedrit
    @vedrit
    Hi all, I'm trying to read nested data from my JSON file and I'm getting an error that JsonData is not a dictionary. I assume I'm trying to go down the wrong path and I'm not having any luck searching online. If anyone has any suggestions, it'd be appreciated
    vedrit
    @vedrit
    Nevermind, my formatting didn't match what I was trying to accomplish
    Mattias Karlsson
    @devlead
    Ok, glad you got it sorted.
    vedrit
    @vedrit
    New problem, though. How do I combine two JsonData objects?
    JsonData.Add() throws errors that its either not a dictionary or not a list
    deep-sync
    @deep-sync
    hey guys am super new to json and i just had a couple of questions. First: Am unable to add using LitJson in my c# script because my visual studio doesn't let me edit references. Second: I am looking to instantiate 2 different kinds of cubes(total 10 cubes randomly chosen of what type of cube will be generated) at runtime at random positions. I have been able to sort random instantiating by creating two separate prefabs of the 2 kinds of cubes. but I want to create only one cube and take the hitPoints(score to be added when cube is destroyed on collision) and the colour(to differentiate two different kinds of cubes) to be read from a son file and then instantiated. Now anyone who can help pointing me in the right direction and all would be great! TIA
    json file*
    ShadowFiend
    @ZackNicola
    pretty sure you are chinese
    John
    @JVimes
    Any way to handle a hyphenated json key when using JsonMapper.ToObject<T>(json)? C# names can't have hyphen, apparently.
    Gleb
    @NudeNULL
    Hello @devlead , I am trying to achieve something like your site but I can't find how to add content like blog posts or documentation, how do you edit your site?
    I am also using the wyam for generating of this pages
    Mattias Karlsson
    @devlead
    @NudeNULL I'm using a tool call Wyam, source code of the litjson site is here: https://github.com/LitJSON/litjson.github.io
    It gets processed through wyam tool and static html gets published to master branch
    Which is then served by Github pages.
    Gleb
    @NudeNULL
    @devlead Yeah I know how to do all of the described above stepts, I was asking about how add content, for example how do you add blog posts like release notes, I know it is a stupid question but I am a game developer and have no idea on how to do such things, if it's simple can you give me some advice on how to do it?
    I don't think that I have to write directly into html files, there must be something that generates the content easily
    Gary Ewan Park
    @gep13
    @NudeNULL If you drill down into the input folder and then blog, you will find the source markdown files, for example:
    These are what Wyam using as the source for generating the html files that are then served on GitHub
    You would add a markdown file for each page that you wanted to show on the site
    Gleb
    @NudeNULL
    Yeah I got this, do you change the /md files directly via a text editor like notepad++ or there is a better tool?
    Gary Ewan Park
    @gep13
    I tend to use VSCode, but notepad++ works as well
    Gleb
    @NudeNULL
    Ok, thanks a lot!