Add Null constuctor to encodeJSON