One-File JSON Parser View on Asset Store (opens in new tab)

Package details

Latest version
1.0
Last updated
First released
Unity version
2023.1.13 or later
Package size
22 KB
Files
4
Favorites
2
Views in the past week
3

Price tracking

Last checked
Tracked since
Lowest recorded
$4.99 on

Keywords

One-File JSON Parser

by Hammer Solves Everything (opens in new tab)

No ratings yet

Price $4.99

Buy on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for One-File JSON Parser, 6 months Current $4.99; lowest $4.99; highest $4.99 in this period. $0 $2.5 $5 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 5

One-File JSON Parser screenshot 1

One-File JSON Parser screenshot 1

About this asset

One-file JSON Parser can parse JSON in a single file, ItsJsonParser.cs.

You can easily use, copy, modify, reproduce, transmit, and distribute the software.

Feature

  • Parse JSON string to class
  • Parse class to JSON string

Details

  • Nested classes and structs can be parsed
  • Nested Arrays and Lists can be parsed
  • Enum variables can be parsed as name
  • Nullable variables can be parsed (when not null)
  • SerializeField and NonSerialized attributes can be used to mark as parse target

Example

To JSON text from Class

FooClass foo = new FooClass();

string jsonText = ItsJsonParser.ToJson(foo);

From JSON text to Class

string jsonText = "{\"foo\":1, \"bar\":\"baz\"}";

FooClass foo = ItsJsonParser.FromJson<FooClass>(jsonText);

From the publisher's Asset Store listing.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP Custom
2023.1.13f1 Compatible Compatible Compatible Compatible

As listed on the Asset Store.