json representation of js object