Put json serialization default code in grangular plugin