Added JsonSerialisor and associated spec.