add json export for books