Adds Json serialization mechanism

Refs #1