updated getSequenceJson to handle if-else
loadJson and getSequence Json work for If conditions