export as JSON on console