WIP records: REST API addition

Perhaps a stupid question but why not 
```
response = jsonify(json.loads(result))
```
 instead of first assigning the value to result and then response ?