Skip to content

Data formatting and conversion

Inspect common data formats and work through reproducible conversion examples.

Back to the main workspace
Compare JSON structures

See changed values by path. Arrays are compared in order.

Try an example

  1. Run the prefilled pair with a changing from 1 to 2.
  2. Check the result. The result reports a changed value at /a, with 1 before and 2 after.
Convert between JSON and YAML

Move a configuration sample between two formats and review its structure.

Try an example

  1. Run the sample JSON with direction to-yaml.
  2. Check the result. The YAML output contains a: 1. Keep a fixture when converting richer structures so you can compare types afterward.
Convert between JSON and XML

Inspect how element values and attributes map before using the result elsewhere.

Try an example

  1. Run the sample XML with direction to-json.
  2. Check the result. The resulting JSON puts name under root and gives it the value Ada.
Inspect CSV rows

Review separators and quoted fields from a small export.

Try an example

  1. Run the sample with a comma delimiter. Inspect the first two rows in the result.
  2. Check the result. The first row contains the two headers name and city. The next row contains Ada and Chengdu.
Convert between CSV and JSON

Check the header names before handing a converted table to an API.

Try an example

  1. Keep the sample, set direction to to-json and run.
  2. Check the result. The output is an array containing one record, with name set to Ada and city set to Chengdu.
Convert JSON Lines to an array

Validate each nonblank line and place the original records into one JSON array.

Try an example

  1. Run both sample lines together, with one complete JSON record per line.
  2. Check the result. The output is one array containing two records. The first ID remains 9007199254740993 in the output text.
Read a value using JSON Pointer

Enter a path such as /items/0/id to extract a nested field.

Try an example

  1. Keep the sample object and the pointer /items/0/id, then run.
  2. Check the result. The selected value is A17. Index 0 selects the first array item.
Convert integer bases

Convert exact integer values between bases 2 to 36.

Try an example

  1. Run the sample 255 with input base 10 and output base 16.
  2. Check the result. The hexadecimal answer is ff.
Encode or decode Base64 text

Round-trip a synthetic string. Base64 is a representation for bytes.

Try an example

  1. Run the sample in encode mode. Paste the result back, select Decode and run it again.
  2. Check the result. The encoded sample is aGVsbG8g5LiW55WM. Decoding restores “hello 世界”.
Inspect Unicode code points

Check the characters in a payload when typography and encoded values appear different.

Try an example

  1. Run the prefilled characters A and 😀.
  2. Check the result. The result reports U+0041 and U+1F600. The emoji uses two UTF-16 units.