Allow JSON() serialization on custom RecordTypes

Open
#2,603 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
compilers

Research direction

Start in src/libraries/Microsoft.PowerFx.Core/Texl/Builtins/Json.cs around line 114 and reproduce the failure with JSON(First(incident)), where incident is a custom derived RecordType. Trace why the argument is reported as ErrJSONArg1UnsupportedType. Done means JSON() accepts this RecordType instead of producing that error.

Written by the indexing model from the issue text.

Description

JSON(First(incident)) fails
where incident is a custom derived RecordType.

ErrJSONArg1UnsupportedType

Appear to fail here:
https://github.com/microsoft/Power-Fx/blob/930ca694c5017eb410987510710246e49b84244e/src/libraries/Microsoft.PowerFx.Core/Texl/Builtins/Json.cs#L114

Dominant language
C#
Stars
3.4k
Forks
358
Avg merge
10h 34m
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/Power-Fx

All issues in microsoft/Power-Fx

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.