working serialization of objects to JSON, not yet hooked to handlers
complete working JSON serialization
json changes merged into master