Support undefined in extended JSON

JAVA-1281