WLJS LogoWLJS Notebook

ImportString

ImportString["data", "format"] imports data in the specified format from a string.

ImportString["data"] attempts to determine the format automatically.

Examples

Import JSON:

ImportString["[1, 2, 3]", "JSON"]
(* {1, 2, 3} *)

Import CSV:

ImportString["1,2\n3,4", "CSV"]
(* {{"1", "2"}, {"3", "4"}} *)

Please visit the official Wolfram Language Reference for more details.

On this page