jsonserialized ~master

JSON serialization library for std_data_json. Easily serialize/deserialize structs to/from a JSONValue.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

jsonserialized Build Status

JSON serialization library for stddatajson. Easily serialize/deserialize structs and classes to/from a JSONValue.

How to use

import jsonserialized.serialization;
import jsonserialized.deserialization;
import stdx.data.json;

struct MyStruct {
    int intField;
    string stringField;
}

MyStruct st;

st.intField = 42;
st.stringField = "Don't panic.";

// Serialize the struct to JSON
auto jsonValue = st.serializeToJSONValue();

// Create a new empty struct
MyStruct st2;

// Deserialize the JSONValue into it
st2.deserializeFromJSONValue(jsonValue);
Authors:
  • Kjartan F. Kvamme
Dependencies:
std_data_json, dunit
Versions:
0.2.1 2016-Dec-13
0.2.0 2016-Dec-04
0.1.1 2016-Dec-04
0.1.0 2016-Mar-25
0.0.1 2016-Feb-17
Show all 6 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 832 downloads total

Score:
0.5
Short URL:
jsonserialized.dub.pm