LPS-36535 Proper treatment of LayoutTypeException in JSON. Eliminate parameter value reuse and added new constant FIRST_PRIORITY and deleted magic number.