OpenParable
Skip to content
← Back to skills

F8 Tools Text JSON XML Workflow

Documents
f8-tools-text-json-xml-workflow

F8 Tools Text JSON XML Workflow is an Agent Skill for documents published in the TippingGame/F8Framework repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when working with Text/JSON/XML tools — text processing, LitJson, and XML utilities in F8Framework.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/TippingGame/F8Framework/blob/HEAD/Tests/AISkills/f8framework-skills/tools/f8-tools-text-json-xml-workflow/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/f8-tools-text-json-xml-workflow, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Text/JSON/XML Tools Workflow

Use this skill when

  • The task involves JSON serialization/deserialization, XML parsing, or text processing.
  • The user needs LitJson enhanced features or string manipulation.

Path resolution

  1. Source files:
    • Assets/F8Framework/Runtime/Utility/Text.cs (~10KB)
    • Assets/F8Framework/Runtime/Utility/LitJson.cs (~4KB)
    • Assets/F8Framework/Runtime/Utility/Xml.cs (~4KB)

Sources of truth

  • Source files: Text.cs, LitJson.cs, Xml.cs in Runtime/Utility

Key capabilities

Text (Text.cs)

  • String formatting and manipulation
  • Encoding conversion
  • Text matching and searching
  • String builder utilities

LitJson (LitJson.cs)

  • JSON serialization/deserialization (enhanced LitJson)
  • Supports Unity types: Vector2/3/4, Quaternion, Color, Color32, Transform, GameObject, Bounds, Rect, Matrix4x4, etc.
  • Dictionary key supports all basic and enum types
  • HashSet support
  • DateTime precision fix
  • Long type fix

XML (Xml.cs)

  • XML reading and writing
  • XML node navigation
  • Attribute access

Workflow

  1. For JSON: use JsonMapper.ToJson(obj) / JsonMapper.ToObject<T>(jsonString).
  2. LitJson automatically handles Unity types — no special configuration.
  3. For XML: use Xml class methods for reading/writing.
  4. For text: use Text class utility methods.

Common error handling

ErrorCauseSolution
JSON serialization failsUnsupported typeCheck LitJson type support list
DateTime precision lossDefault DateTime handlingAlready fixed in F8's LitJson

Output checklist

  • Serialization method selected (JSON/XML/binary).
  • Unity type support verified for JSON.
  • Text processing patterns identified.