json extension and bugfix