Prefer JSON over XML
Fix NPE in GenericAStar