Return abstract as only section if there are no sections.
Use inherited JSON method.

Fix indent as well.
Fix replacement string.
Rename folder src => lib.