add asJSON to docs