Add macros that generates from_json and to_json for rest
Merge pull request #45 from b0oh/rest

Add macros that generates from_json and to_json for rest