Adding missing comma to api.md

Invalid json example
Merge pull request #955 from jurmous/patch-1

Adding missing comma to api.md