Fix erlan -> json conversion for bool and null