Working static compilation for Json