• Resolved piwowartomek

    (@piwowartomek)


    Hi,
    My problem is when I export order data in JSON format.

    1. When there is a “/” sign (ex. 644/ZAB/5213/2019) output adds “\” sign (ex. “order_number”: “644\/ZAB\/5213\/2019″,”)
    2. When there are some latin extended characters (ex. Powstańców Warszawy 6/4) it outputs ( “billing_address”: “Powsta\u0144c\u00f3w Warszawy 6\/4” )

    Thank You,
    Tomek.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi Tomek

    It’s a normal situation, default behavior for json_encode.

    You can add following PHP code to “Misc Settings” to suppress it.
    thanks, ALex

    add_filter( "woe_json_output_filter", function($json, $rec, $formatter ){
      return json_encode( json_decode($json), JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
    },10,3);
    Thread Starter piwowartomek

    (@piwowartomek)

    Thank you so much! Great feedback.

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with export order data in JSON format’ is closed to new replies.