-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate replacing Newtonsoft.Json
with System.Text.Json
#99
Comments
A big blocker for migrating to This would make the kinds of verifications and extractions we do in |
Given this comment: dotnet/runtime#31068 (comment) I'm going to close this one for now and stick with Newtonsoft.Json for the time being. |
I had posted in that issue that I have a fully-compliant (to the upcoming spec) implementation of JSON Path in JsonPath.Net. Did that not work for you? |
@gregsdennis thank you for the comment. I don't know if it works or didn't work, because I haven't tried JsonPath.Net. It looks promising. What's keeping me from making the migration at the moment is that I'd still be using a third-party library, although less of it as the (de-)serialization part can be handled by Also, is there a specific reason there's no Happy to reopen this for a while. |
Well, if you need JSON Path functionality with STJ, then it's perfect. It fully implements the pending spec.
Yeah, the spec has been pretty much finalized, but it's not ratified into RFC status yet. Once that happens, I'll bump the library to 1.0.0. |
Got it, thank you. I'll have a look at it soon (probably early January) and decide whether it's worth the effort. I'd be happy to get rid of I could even see this as a first step to full removal once STJ supports JsonPath (which at some point they'll hopefully will). Thank you once again. |
To be honest, I'm not sure it will be included given there's a lib that supports it. Maybe. There's a lot of call for JSON Schema as well (and I have that covered 😁), but the indication from the .net team so far is external support tends to be sufficient until it isn't. |
Which library do you mean? Yours? Sorry about the confusion here (hey, it's a Saturday morning ;) |
Yes, I was talking about mine, but it's kinda their approach to any new functionality right now. MS needs some hefty reasoning to warrant the resources to build something like JSON Path or Schema. Just how it is right now. |
Gotcha. Thanks. As I said, I'll have a good look at your library and what it would take to implement it. And thank you, too, for mentioning the JSON Schema capabilities. Not too long ago I moved from Which one of your packages would I need there? All I need is the capability to pass in a schema definition as a See also #96 |
For JSON Schema, you can use the I have full docs for all my libs at https://docs.json-everything.net. The main site (https://json-everything.net) is a playground where you can run everything in your browser (Blazor WASM). |
Got it, thank you very much. As I said, I'll have a look soon, in the next couple of weeks. |
Json Path is now an RFC! |
This might be a good idea as
System.Text.Json
is built into .NET, whereasNewtonsoft.Json
is a third party library.Even better would be if RestAssured.Net can support both, but that would probably be more work.
See eclipse-tractusx/portal-backend#110 (comment) for the discussion that drives this issue / request.
The text was updated successfully, but these errors were encountered: