class_docstr: Series.struct namespace.
class_docstr_tok: ["Series.struct","namespace","."]
docstr: Convert this struct to a string column with json values.
  
  Examples
  --------
  >>> s = pl.Series("a", [{"a": [1, 2], "b": [45]}, {"a": [9, 1, 3], "b": None}])
  >>> s.struct.json_encode()
  shape: (2,)
  Series: 'a' [str]
  [
      "{"a":[1,2],"b"…
      "{"a":[9,1,3],"…
  ]
docstr_tok: ["Convert","this","struct","to","a","string","column","with","json","values",".","Examples","--","--","--","--",">",">",">","s","=","pl.Series","(","``","a","''",",","[","{","``","a","''",":","[","1",",","2","]",",","``","b","''",":","[","45","]","}",",","{","``","a","''",":","[","9",",","1",",","3","]",",","``","b","''",":","None","}","]",")",">",">",">","s.struct.json_encode","(",")","shape",":","(","2",",",")","Series",":","'","a","'","[","str","]","[","``","{","``","a","''",":","[","1,2","]",",","''","b","''","\u2026","``","{","``","a","''",":","[","9,1,3","]",",","''","\u2026","]"]
code: def json_encode(self) -> Series:
      """
      Convert this struct to a string column with json values.
  
      Examples
      --------
      >>> s = pl.Series("a", [{"a": [1, 2], "b": [45]}, {"a": [9, 1, 3], "b": None}])
      >>> s.struct.json_encode()
      shape: (2,)
      Series: 'a' [str]
      [
          "{"a":[1,2],"b"…
          "{"a":[9,1,3],"…
      ]
  
      """
  
file_path: polars/py-polars/polars/series/struct.py
imports: from __future__ import annotations
  import os
  from collections import OrderedDict
  from typing import TYPE_CHECKING, Sequence
  from polars.series.utils import expr_dispatch
  from polars.utils._wrap import wrap_df
  from polars.utils.various import sphinx_accessor
label_desc: Use image node_id 9 for calling the StructNameSpace obj's underlying member method code with example usage: obj.json_encode() without return types