Adds first attempts at jsoning.

Not sure about the markup though, thus postponed.