!******************************************************************************!
! Convert a Platinum Pair to JSON via BLUE2JSON - example
!
! Author:  Jeanette McCall
!******************************************************************************!
startmacro cs:plat1000file cs:sigmf_json_file

  keyword plat1000file get ASSOC6000 VALUE=assoc6000file

  if assoc6000file rexists then
    !convert plat1000file BLUE2JSON temp1000json{AUX=RAM} OPTIONS=nxm.sys.test.blue2json_plat1000_test.tbl
    convert plat1000file BLUE2JSON temp1000json{AUX=RAM} OPTIONS=nxm.sys.test.blue2json_very_nested_sigmf_test.tbl
    convert assoc6000file BLUE2JSON temp6000json{AUX=RAM} OPTIONS=nxm.sys.test.blue2json_records_test.tbl
    new java.lang.String[] array {"temp1000json{AUX=RAM}","temp6000json{AUX=RAM}"}
    invoke ,, nxm.sys.lib.JsonUtilities.combineJSON("^sigmf_json_file",array) 
  else
    convert plat1000file BLUE2JSON sigmf_json_file OPTIONS=nxm.sys.test.blue2json_headkey_test.tbl
  endif

endmacro