got json deserialization working, reworked serialization slightly to get deserialization working.