refactor: mv json extension to library, name changes
refactor: mv rest class to own file
refactor