Added a JSON serializer and associated test.

Built a JSON serializer within my current project then decided it is probably something others would also like.