JSON API: Add 'set-ptr' PTR-creating functionality
Merge pull request #1312 from zeha/api-set-ptr

JSON API: Add 'set-ptr' PTR-creating functionality