Add JsonSerialize

Fix https://github.com/briannesbitt/Carbon/issues/182.