Json Learning

Since Epicor is using more JSON, I want to buff up my knowledge and learn more about it. I’ve done some JavaScript many moons ago. What are good reference books, sites, etc., that you have used or are using?

3 Likes

JSON isn’t a coding language, it’s just a data structure. Basically a standard way to organize the data so that any system can reliably read it because the rules are standard. There are lots of different coding libraries that help you translate in and out of JSON, but those are going to be based on the coding language that you are using. (NewtonSoft is a common one). But the purpose of the library/helper is just to be able to take lots of different arrangements of data (language specific data types) and put it into the standard JSON format and vice versa.

Think of coding language as all of the parts of the the widgets (C#) you make in your factory. And another factory makes windgings (JavaScript). They aren’t the same but they may be similar, but you can boil the pieces into currency, dollars, then back to the other thing.

It’s a crappy analogy, but maybe it helps? Basically Json is pretty simple, so don’t overcomplicate it. It should only take a few pages to define the rules. So if you google it and find a page about it, that’s probably all you need.

5 Likes

Thank you for the detailed reply I think there are a lot of the people on here like me that are doing it by themselves or with the help of one other person. When you start getting into all of the Kinetic stuff it can be daunting to try and figure out what you need to do.

I’ll look at NewtonSoft.

1 Like

Oh and my IT brain does try to overcomplicate stuff…lol

3 Likes

And if you’re playing the drinking game, “When Wonsil mentions System.Text.Json”…

Saturday Night Live Drinking GIF by Global TV

The author of NewtonSoft now works for Microsoft and has added Json handling to .NET directly. NewtonSoft is very powerful, especially when working with custom objects. I don’t find that much in the Kinetic world. So, anyway, just another option.

6 Likes

Incidentally, this thread that just came up has a good representation of a question about how an App Studio Event works, with a nifty ms paint style graphic, a screenshot of debug tools, and the raw json.

It makes a decent intro to Epicor’s “Flavor” of json.

3 Likes