Fix map editor JSON parsing.