Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. JSON to JSON for .NET (Core)?

JSON to JSON for .NET (Core)?

Scheduled Pinned Locked Moved The Lounge
csharpjavascriptxmlquestionjava
11 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #1

    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.

    Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

    Kornfeld Eliyahu PeterK M W Richard DeemingR 4 Replies Last reply
    0
    • Sander RosselS Sander Rossel

      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.

      Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #2

      XSLT (nasty one)?

      "The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      Sander RosselS 1 Reply Last reply
      0
      • Sander RosselS Sander Rossel

        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.

        Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

        M Offline
        M Offline
        Mario Vernari
        wrote on last edited by
        #3

        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!

        L N 2 Replies Last reply
        0
        • Sander RosselS Sander Rossel

          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.

          Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

          W Offline
          W Offline
          WaferFun
          wrote on last edited by
          #4

          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 :-\

          1 Reply Last reply
          0
          • M Mario Vernari

            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!

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            +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.

            1 Reply Last reply
            0
            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

              XSLT (nasty one)?

              "The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018

              Sander RosselS Offline
              Sander RosselS Offline
              Sander Rossel
              wrote on last edited by
              #6

              Sander Rossel wrote:

              And no, I'm not going to JSON -> XML -> XSLT -> XML -> JSON.

              Kornfeld Eliyahu Peter wrote:

              XSLT (nasty one)?

              :doh: Thanks for the attempt though :laugh:

              Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

              Kornfeld Eliyahu PeterK 1 Reply Last reply
              0
              • Sander RosselS Sander Rossel

                Sander Rossel wrote:

                And no, I'm not going to JSON -> XML -> XSLT -> XML -> JSON.

                Kornfeld Eliyahu Peter wrote:

                XSLT (nasty one)?

                :doh: Thanks for the attempt though :laugh:

                Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                Kornfeld Eliyahu PeterK Offline
                Kornfeld Eliyahu PeterK Offline
                Kornfeld Eliyahu Peter
                wrote on last edited by
                #7

                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

                "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                Sander RosselS 1 Reply Last reply
                0
                • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                  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

                  Sander RosselS Offline
                  Sander RosselS Offline
                  Sander Rossel
                  wrote on last edited by
                  #8

                  Kornfeld Eliyahu Peter wrote:

                  You missed the point

                  Yep, never knew XSLT could do that. I'll continue Googling for an alternative X| Thanks though :thumbsup:

                  Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                  1 Reply Last reply
                  0
                  • M Mario Vernari

                    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!

                    N Offline
                    N Offline
                    Nathan Minier
                    wrote on last edited by
                    #9

                    Moreover, you can write custom converters for it to provide different serialization approaches: [Custom JsonConverter](https://www.newtonsoft.com/json/help/html/CustomJsonConverter.htm)

                    "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

                    1 Reply Last reply
                    0
                    • Sander RosselS Sander Rossel

                      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.

                      Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                      Richard DeemingR Offline
                      Richard DeemingR Offline
                      Richard Deeming
                      wrote on last edited by
                      #10

                      How about: GitHub - WorkMaze/JUST.net: JUST - JSON Under Simple Transformation (XSLT equivalent for JSON).[^]


                      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                      Sander RosselS 1 Reply Last reply
                      0
                      • Richard DeemingR Richard Deeming

                        How about: GitHub - WorkMaze/JUST.net: JUST - JSON Under Simple Transformation (XSLT equivalent for JSON).[^]


                        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                        Sander RosselS Offline
                        Sander RosselS Offline
                        Sander Rossel
                        wrote on last edited by
                        #11

                        That looks promising, thanks :thumbsup:

                        Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups