ApiAnalysis.SimpleJsonAnalyzer 3.1.0

dotnet add package ApiAnalysis.SimpleJsonAnalyzer --version 3.1.0                
NuGet\Install-Package ApiAnalysis.SimpleJsonAnalyzer -Version 3.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ApiAnalysis.SimpleJsonAnalyzer" Version="3.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ApiAnalysis.SimpleJsonAnalyzer --version 3.1.0                
#r "nuget: ApiAnalysis.SimpleJsonAnalyzer, 3.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ApiAnalysis.SimpleJsonAnalyzer as a Cake Addin
#addin nuget:?package=ApiAnalysis.SimpleJsonAnalyzer&version=3.1.0

// Install ApiAnalysis.SimpleJsonAnalyzer as a Cake Tool
#tool nuget:?package=ApiAnalysis.SimpleJsonAnalyzer&version=3.1.0                

Analyzer for comparing JSON and POCO types.

Especially useful for when deserializing fails.

Instead of error messages like:

JsonSerializationException: Error converting value 23445 to type 'System.Byte'. Path 'OtherNumber', line 1, position 32.
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (JsonReader reader, object value, CultureInfo culture, JsonContract contract, Type targetType)
at bool Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, object target)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, string id)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (JsonReader reader, Type objectType, bool checkAdditionalContent)
at object Newtonsoft.Json.JsonSerializer.DeserializeInternal (JsonReader reader, Type objectType)
at object Newtonsoft.Json.JsonConvert.DeserializeObject (string value, Type type, JsonSerializerSettings settings)
at T Newtonsoft.Json.JsonConvert.DeserializeObject<T> (string value, JsonSerializerSettings settings)
at void <<Initialize>>d__0.MoveNext ()
at void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
at void System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task task)
at void Xamarin.Interactive.Compilation.CompilationExecutionContext<TScriptResult>.<RunAsync>d__12.MoveNext ()
at void System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
at void System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task task)
at void Xamarin.Interactive.Repl.ReplExecutionContext.<RunAsync>d__9.MoveNext ()

▶ OverflowException: Value was either too large or too small for an unsigned byte.

You can get useful human readable information like:

- Expected 'OtherNumber' to be of type 'Byte' but server returned a 'Integer'.
- The JSON included the property 'Status' (with value '1') but it does not exist in class 'SimpleClass'.
- Expected 'SimpleClass' to have a property named 'Name' but it did not exist in JSON.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on ApiAnalysis.SimpleJsonAnalyzer:

Repository Stars
mrlacey/Rapid-XAML-Toolkit
A collection of tools to accelerate XAML development within Visual Studio. These include XAML analysis, XAML generations, plus templates and helpers.
Version Downloads Last updated
3.1.0 73 11/22/2024
3.0.0 589 6/26/2022
2.0.0 6,909 2/13/2021
1.4.0 5,094 9/21/2017
1.3.0 1,531 9/6/2017
1.2.0 1,027 9/5/2017
1.1.0 1,007 8/31/2017
1.0.0 1,005 8/31/2017
0.2.0 1,259 8/29/2017

Now references json.net 13.0.3