added spray json example with trait