|
I don't think this is a programming question...
I'm currently porting a Java application to .NET Core.
Everything is fine except one thing...
The Java application uses bazaarvoice/jolt: JSON to JSON transformation library[^].
It's pretty neat, one JSON comes in and another JSON (with the same values, but a completely different structure) comes out.
All configured using... JSON!
I can't seem to find something similar for .NET.
Anyone know of anything?
And no, I'm not going to JSON -> XML -> XSLT -> XML -> JSON.
|
|
|
|
|
XSLT (nasty one)?
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
|
|
|
|
|
Sander Rossel wrote: And no, I'm not going to JSON -> XML -> XSLT -> XML -> JSON.
Kornfeld Eliyahu Peter wrote: XSLT (nasty one)?
Thanks for the attempt though
|
|
|
|
|
You missed the point... XSLT can parse JSON and can write JSON... So no XML in the middle... But such XSLT is looks more nasty than the usual...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: You missed the point Yep, never knew XSLT could do that.
I'll continue Googling for an alternative
Thanks though
|
|
|
|
|
I didn't know that library.
As for me, if you use the NewtonSoft JSON library, then you can leverage the JLinq section which offers a fluent API close to the Linq. With that you can do practically everything.
There's only a thing which does not come for free, but it's not hard to write by yourself. It's the path-mapping of the nodes. However, I'd prefer the "pull" approach: the path should represent the node to retrieve (from the source), and that should be specified in the transformation template.
Good luck!
|
|
|
|
|
+1 I've been using that library for several years and is one of the best pieces of software out there.
throughout my life, my two greatest assets have been mental stability and being, like, really smart.
modified 20-Oct-19 21:02pm.
|
|
|
|
|
Moreover, you can write custom converters for it to provide different serialization approaches:
Custom JsonConverter
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
try googling something like Jolt .net or Joltnet or Joitsharp, maybe you can find a warpper or two, I do this all the time when I need some Java content for .net
|
|
|
|
|
|
That looks promising, thanks
|
|
|
|
|
Quote: Services include chanting and the burning of incense, as they would for the human departed. A-Fun employees attend the closed ceremonies, serving as surrogates for the “families” of the pets, and pliers are placed before the robodogs in place of traditional offerings like fruit. Robots even recite Buddhist sutras, or scriptures.
According to Head Priest Oi, honoring inanimate objects is consistent with Buddhist thought. Nippon.com quotes the priest: “Even though AIBO is a machine and doesn’t have feelings, it acts as a mirror for human emotions.” Speaking with videographer Kei Oumawatari, Oi cites a saying, “Everything has Buddha-nature.” [^]
Gate, gate, paragate,, parasamghati, bodhi, svaha !
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12
|
|
|
|
|
As Zenyata would say (aka our friendly robot monk), we are all one with the universe!
|
|
|
|
|
Yeah, load of bullshit.
these buddhist 'priests' get a 'packet' (envelope of money) for their 'help' and whatever entourage - professional mourners, the guy that dings the donger etc the same. A**hole scammers is all they are.
Soft target rich enough to buy a robot dog likely very generous.
This internet thing is amazing! Letting people use it: worst idea ever!
|
|
|
|
|
You have had some negative personal experiences ?
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12
|
|
|
|
|
Seen enough of these fake monks around in asia, totally unregulated: all you need is a robe some [fake] jade jewellry and walk around with your similarly dressed mates mumbling "antimatter" or similar. You'll see these guys take off their robe and go out drinking, smoking, eating anything.
I know happens in any religion, but most other major religions at least [attempt to] self regulate rougues - you want to pretend to be a priest the papal goon squad will try to shut you down - the buddhists being all peace loving simply don't bother and comparatively their's many more fakes. (Also the fact it's really a hell of a lot easier to be a fake buddhist monk, you can even do it on TV and the real ones still won't give a flying sh*t.)
This internet thing is amazing! Letting people use it: worst idea ever!
|
|
|
|
|
BillWoodruff wrote: pliers are placed before the robodogs in place of traditional offerings like fruit
Wouldn't batteries, rather than pliers, be the equivalent of food for robots?
BillWoodruff wrote: honoring inanimate objects is consistent with Buddhist thought
In that case, do they also hold burial ceremonies for furniture, kitchen appliances, etc.?
The (Western) mind boggles!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: Wouldn't batteries, rather than pliers, be the equivalent of food for robots? I am told by a usually unreliable source that there are certain secret Aibo behaviors involving pliers that are revealed to Japanese customers under draconian non-disclosure agreements, which being signed and witnessed, then, a technician from a company Sony can plausibly deny any association with comes to the client's home and activates.
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12
|
|
|
|
|
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Quote:
Gate, gate, paragate,, parasamghati, bodhi, svaha ! The stupid sh*t people do?
Everyone has a photographic memory; some just don't have film. Steven Wright
|
|
|
|
|
This Josh Chang guy is flooding CodeProject home page with "his articles"
example: Day 69 of 100 Days of VR: Writing Code To Interact With Menus in Unity
I don't think he is really malintentionned, but I see several problem with his "articles"
1). from looking at a few, they are not complete at all, one need to piece together the previous XX one before to make sense of his work
2). He is going to end with legendary status, more article than Marc Clifton, while his whole 100 post tell us less than 1 single article by such as said Marc Clifton (for example)
3). On the CP home page, it's all about him... "article" 59 - 70... I really don't care I want to see other contribution...
What to do about it? (just some random ideas)
1. cancel all his articles?
2. only display at most 1 article per author on CP home page?
3. other?
EDIT
This seems to come from his blog. Fair enough.
But we shouldn't have the home page displaying 20 links to the same blog, me think....
EDIT2
To clarify further.
I am not against new upcoming writer.
I am just quite annoyed that for a whole afternoon the whole "Featured C# projects" page was day 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70 of VR coding.
Not too mention all those pages together are not even featuring a single fully functioning compiling project. You need to blend pages 1-50 I guess...
modified 28-May-18 12:40pm.
|
|
|
|
|
Agree fully. Whatever his intentions the result is not benign and at the very least some counseling may be in order.
Peter Wasser
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts." - Bertrand Russell
|
|
|
|
|
So, post this message on the site Suggs&Bugs forum ? Or, the abuse forum ?
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12
|
|
|
|
|
Good idea.
Gotta report in Sugg & Bugs. Didn't think of that!
In fact all those links come from his blog, which is fair enough, since CP has a blog scrubbing feature.
But what was really annoying was the CP Home Page, featured projects of the day section, with almost all links pointing to the same blog (different days), with nothing else featured.
It's gone now... But it was quite annoying when it was on.
modified 28-May-18 2:58am.
|
|
|
|
|
They all appear to be under the classification of "Technical Blogs". Personally, I'm not going to wade through 100 blog posts to get to anything but if he is willing to mark them as such and others are giving him positive feedback or votes, what's the big deal? Maybe he will end up having more rep points than Clifton. Again, so what? Don't know about you, but when I last tried to sell my rep points on Craigslist, I got no takers.
We should be encouraging young talent to write, not moaning that they might overtake the old codgers (of which I am one) and if you think there are issues with his posts, then say something to him, directly; help him achieve greatness rather than bringing him down.
Keep your friends close. Keep Kill your enemies closer.
The End
|
|
|
|
|