added spin service
fixed json parse bug in validate functino
Merge branch 'spin' into dev