as_json should take an optional optinos argument
Use lastest master