Add JSON serialization of code
Add code with scope JSON serialization
Add max key JSON serialization
Add min key JSON serialization
Add regexp JSON serialization
Add timestamp JSON serialization