NeuronJsonParser 1.1.0

dotnet add package NeuronJsonParser --version 1.1.0
                    
NuGet\Install-Package NeuronJsonParser -Version 1.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="NeuronJsonParser" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NeuronJsonParser" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="NeuronJsonParser" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NeuronJsonParser --version 1.1.0
                    
#r "nuget: NeuronJsonParser, 1.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.
#:package NeuronJsonParser@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NeuronJsonParser&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=NeuronJsonParser&version=1.1.0
                    
Install as a Cake Tool

Neuron JSON Parser

Neuron JSON Parser is a library that takes a configuration and a JSON dump and returns a parsed JSON string only containing the keywords in the configuration.

Installation

To install the nuget, run the following code in CLI.

dotnet add package NeuronJsonParser

Usage

The expected input is the following format.

{
  "351_282_ZZL": {
    "STATUS": 0,
    "VALUE": false
  },
  "351_282_ZZH": {
    "STATUS": 0,
    "VALUE": false
  },
  "761008_ZS2_RH": {
    "STATUS": 0,
    "VALUE": 6128.8095703125,
    "VALUE2": 6129
  },
  "761008_ZS1_RH": {
    "STATUS": 0,
    "VALUE": 6255.52490234375,
    "VALUE2": 6256
  },
  "801_135_ZZL": {
    "STATUS": 0,
    "VALUE": false
  }
}
JsonParsingConfig config = new JsonParsingConfig();
config.Signals = new List<string> {"351_282_ZZL", "761008_ZS1_RH"};
NeuronJsonParser neuronJsonParser = new NeuronJsonParser(config, logger);


StreamReader r = new StreamReader("SampleData.json");
string jsonString = r.ReadToEnd();
string output = neuronJsonParser.ParseSerializedJsonInput(jsonString);

The expected output from this code is:

{
  "351_282_ZZL": {
    "STATUS": 0,
    "VALUE": false
  },
  "761008_ZS1_RH": {
    "STATUS": 0,
    "VALUE": 6255.52490234375,
    "VALUE2": 6256
  }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 1,085 12/3/2021
1.0.0 1,059 12/3/2021